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 10060 - Empty URI addresses may not be resolved as "same document references"
Summary: Empty URI addresses may not be resolved as "same document references"
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-07-01 07:41 UTC by fd
Modified: 2010-08-30 15:27 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-07-01 07:41:58 UTC
Links such as:
 <a href="">this page</a>
or
 <form action="">
  [...]
 </form>

... should be resolved as "same document references" and target the page under test. The mobileOK Checker seems to think it needs to strip the part after the last "/" in the path.

For instance, an empty link in:
 http://example.org/foo/test.html
would be resolved as:
 http://example.org/foo/

In turn, this may trigger a few failures if the resolved page doesn't exist or does not define a character encoding and/or content-type.
Comment 1 fd 2010-08-30 15:10:20 UTC
URI resolution in the Resource class now behaves as expected by RFC 2396 and resolves empty references as "the base URI".
Comment 2 fd 2010-08-30 15:27:17 UTC
Related test cases in test suite:
MAIN_DOCUMENT 9
DEFAULT_INPUT_MODE 1
DEFAULT_INPUT_MODE 2
POP_UPS 1
POP_UPS 2
POP_UPS 3
POP_UPS 4
POP_UPS 5
POP_UPS 6
PROVIDE_DEFAULTS 4