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

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24208

Travis Leithead [MSFT] <[email protected]> changed:

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

--- Comment #6 from Travis Leithead [MSFT] <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.