This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9617 - Regular expressions used to match attribute values are too strict
Summary: Regular expressions used to match attribute values are too strict
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 08:17 UTC by fd
Modified: 2010-04-29 17:01 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-04-29 08:17:09 UTC
The XML specification allows equal signs to be surrounded by spaces, and attribute values to be surrounded by quotes or apostrophes:
 http://www.w3.org/TR/xml/#NT-Attribute

Regular expressions used within the mobileOK Checker do not always take these possibilities into account. The following methods are impacted by this bug:
- TextContent.getXMLPrologEncoding
- CssResourceExtractor.extractExternalCss
Comment 1 fd 2010-04-29 17:01:16 UTC
Regular expressions updated