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 6283 - No tests/errors returned when a "standalone" attribute is defined in the XML declaration
Summary: No tests/errors returned when a "standalone" attribute is defined in the XML ...
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: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-06 21:52 UTC by fd
Modified: 2008-12-06 22:02 UTC (History)
0 users

See Also:


Attachments

Description fd 2008-12-06 21:52:30 UTC
Reported as specific to standalone="yes" in:
http://lists.w3.org/Archives/Public/public-mobileok-checker/2008Oct/0007.html

Actually, the error occurs whenever the "standalone" attribute is defined in the XML declaration, e.g.:
 <?xml version="1.0" encoding="utf-8" standalone="no"?>
Comment 1 fd 2008-12-06 22:02:59 UTC
Fixed the getXMLPrologEncoding method in HTTPTextResource.java.

Regular expressions are greedy by default in Java. The extracted encoding string contained all characters up until the end of the value of the last attribute in the XML declaration.

For instance, if the XML declaration was:
  <?xml version="1.0" encoding="utf-8" standalone="no"?>
... the extracted encoding was:
  utf-8" standalone="no