[Bug 24208] Please handle the case of XML attributes with namespaces but no prefix

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24208

Travis Leithead [MSFT] <travil@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Travis Leithead [MSFT] <travil@microsoft.com> ---
OK, took a stab at this. Had to make some significant refactoring of the
algorithm, so make sure you review it all in context.

Unfortunately, I couldn't avoid a multi-pass through an element's attribute
list--hopefully you'll understand why when reading the steps. An implementation
can probably optimize this though :-).

Finally, I went with the easiest to spec approach of a single incrementing
integer (it only has scope within the execution of the algorithm, so that
multiple independent serializations may generate the overlapping "generated
prefixes". I think this is OK, because Firefox and IE do not enforce any kind
of global consistency here and the web is just fine (so I think this is already
a supreme edge-case).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Sunday, 23 March 2014 00:11:28 UTC