2. Effect of normalisation step on the DOM/Infoset

| 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