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 6798 - moki: fragment references to the primary resources are retrieved
Summary: moki: fragment references to the primary resources are retrieved
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: Other All
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 11:43 UTC by fd
Modified: 2009-04-16 14:27 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-04-10 11:43:34 UTC
Related test in the test suite: LINK_TARGET_FORMAT/1

The comparison between URIs does not exclude the fragment part. The consequence is that fragment links to sections of the primary document are considered to be different URIs and are retrieved accordingly.

The retrieval is useless since the resource has already been retrieved. Listing the fragments in the "links" section of the moki representation could be of some use in theory, but in practice, LINK_TARGET_FORMAT-3 is the only mobileOK subtest that is impacted by fragment links and it actually parses the XHTML representation of the resource under test to assert whether there are invalid fragment references to the primary resource.

In short: no need to retrieve the resource another time, and no need to list internal fragments in the links section anyway.

[NB: the bug is fixed in the soon-to-be-committed version of the library]
Comment 1 fd 2009-04-16 14:27:50 UTC
The re-factored version released for bug 6800 compares URIs without taking the fragment into account.