W3C home > Mailing lists > Public > public-xml-id@w3.org > November 2004

2. Effect of normalisation step on the DOM/Infoset

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 18 Nov 2004 14:02:18 +0000 (UTC)
To: public-xml-id@w3.org
Message-ID: <Pine.LNX.4.61.0411181401180.24630@dhalsim.dreamhost.com>


| 4 Processing xml:id Attributes
|
| Each xml:id attribute is processed in the following way:

It is unclear whether this processing is intended to change the DOM
(or the infoset, for that matter) or not. If one has the following
document:

   <test xml:id=" test "/>

...what would be returned by:

   document.documentElement.getAttributeNS('http://www.w3.org/XML/1998/namespace', 'id');

Should it be " test " or "test"?

I think it should be made clear that the processing mentioned in this
section is merely internal to the xml:id processor and does not affect
the infoset or the DOM. (This comment obviously doesn't apply to the
"ID Assignment" phase, where you definitely do want the infoset and
the DOM to be updated, but that's another matter.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 18 November 2004 14:02:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC