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 9618 - XML declarations that span multiple lines are reported as missing in the moki
Summary: XML declarations that span multiple lines are reported as missing in the moki
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:41 UTC by fd
Modified: 2010-04-29 17:00 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-04-29 08:41:24 UTC
According to the XML spec, an XML declaration may span multiple lines:
 http://www.w3.org/TR/xml/#NT-XMLDecl

The mobileOK Checker restricts itself to the first line, which is wrong.

See XhtmlContent.setHasXmlDeclaration method.
Comment 1 fd 2010-04-29 17:00:58 UTC
Code updated to take the multiple line case into account.
Check on whether the XML declaration starts at the first character also added.