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 419 - getbaseuri03 is wrong
Summary: getbaseuri03 is wrong
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 14:52 UTC by Andrew Clover
Modified: 2004-01-08 06:44 UTC (History)
0 users

See Also:


Attachments
Fixes and additional baseURI tests (41.75 KB, patch)
2004-01-08 00:53 UTC, Curt Arnold
Details
Slightly better this time (42.08 KB, patch)
2004-01-08 01:42 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-12 14:52:12 UTC
level3/core/getbaseuri03:

Even the description text for this test seems to state it is wrong. And I agree. ;-)
Comment 1 Curt Arnold 2004-01-06 19:32:28 UTC
Request for clarification to WG (member-only): 
http://lists.w3.org/Archives/Member/w3c-dom-ig/2004Jan/0007.html

The test and Xerces-J appears to be following Infoset which does not define a 
base uri property for doctype, attribute, and comment.
Comment 2 Curt Arnold 2004-01-08 00:53:01 UTC
Created attachment 175 [details]
Fixes and additional baseURI tests
Comment 3 Curt Arnold 2004-01-08 01:31:39 UTC
Appendix C of the Core spec defines the mapping of Infoset to DOM and 
specifies that the baseURI of Attr is null.  So nodegetbaseuri03's expectation 
was correct, the justification for the test in the comment was poor.

I've reviewed the other tests and have added some more that reflect my first 
read on the Appendix.

nodegetbaseuri06 tests the baseURI of a newly created disconnected element.  
The original and current expectation is that baseURI is the documentURI of the 
document used in the createElement call.  The element might not be 
considered "contained" or "encapsulated" by the document at that point, so the 
formulation in RFC 2396 might not hold.  It seems like a reasonable but not 
the only reasonable interpretation.  A null baseURI for any disconnected node 
would seem reasonable too.  I would appreciate any clarification.
Comment 4 Curt Arnold 2004-01-08 01:42:16 UTC
Created attachment 176 [details]
Slightly better this time