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 5920 - PAGE_TITLE crashes when the page contains 2 head elements
Summary: PAGE_TITLE crashes when the page contains 2 head elements
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: 2008-07-31 08:36 UTC by fd
Modified: 2008-07-31 08:41 UTC (History)
0 users

See Also:


Attachments

Description fd 2008-07-31 08:36:58 UTC
There should be one and only one head element in a valid page, but since we still try to run the tests on invalid pages, we may receive a page that contains more than one head elements.

The stylesheet PageTitleTest.xsl already takes into account the case where they may be more than one title element, but does not expect that there may be more than one head element.

When that happens, the checker crashes
Comment 1 fd 2008-07-31 08:41:15 UTC
Fixed the PageTitleTest stylesheet to take the first head into account
(the presence of more than one head elements will be returned by the check on validity)

Also fixed the same potential problem in functions.xsl in moki:get-retrieved-resource to select one base element when more than one head element is defined.