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 6285 - Comments are counted twice in MINIMIZE
Summary: Comments are counted twice in MINIMIZE
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 22:23 UTC by fd
Modified: 2008-12-07 21:46 UTC (History)
0 users

See Also:


Attachments

Description fd 2008-12-06 22:23:33 UTC
HTTPXHTMLResource.java includes in the extraneous counter both white spaces as defined in:
 http://www.w3.org/TR/mobileOK-basic10-tests/#MINIMIZE
... and XML comments as detected through a regular expression.

MinimizeTest.xsl also counts the comments through the:
 /moki/primaryDoc/XHTMLDocInfo/docContent//comment()
... XPath expression.

The moki schema is unclear whether the counter is correct or should be restricted to white spaces only.
Comment 1 fd 2008-12-07 21:46:23 UTC
Updated MinimizeTest.xsl not to take comments into account anymore, i.e. comments size is part of the "extraneous" attribute of the chars element in the moki.