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 828 - nodegetbaseuri20 Asserts against System ID instead of Base URI
Summary: nodegetbaseuri20 Asserts against System ID instead of Base URI
Status: REOPENED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-23 17:44 UTC by Jonathan Au
Modified: 2004-08-06 13:10 UTC (History)
0 users

See Also:


Attachments

Description Jonathan Au 2004-07-23 17:44:05 UTC
The nodegetbaseuri20 test case currently asserts against the System ID of the 
external entity instead of the System ID of the document containing the 
external entity reference.  As the entity reference is expanded, the Base URI 
should be the System ID of the parent element of the external entity and not 
the System ID of the entity itself.
Comment 1 Andrew Clover 2004-08-06 09:10:36 UTC
That's correct isn't it?

DOM L3 Core 1.3.4 states that expanded entity references may need to have
xml:base attributes added to their replacements to make the baseURI property tie
up with XML Base, where the base URI is dependent on the encapsulating 'MIME
entity' (ie. the external entity URI).

(I agree it's a bit odd to find xml:base attributes popping up all over the DOM
just because an external entity was used, but that does seem to be what Core
requires.)

So the test should IMO succeed whether the implementation expands entity
references or not - although the reasons why would differ in each case, so there
perhaps ought to be two tests.