[w3c/DOM-Parsing] Only generate an attribute prefix if required (#30)

If implemented as specified, the prefix set for an attribute in the DOM would never be preserved during serialization. This change only generates the new prefix if the prefix is either missing (which is not allowed for namespaced attributes), or if it conflicts with another local namespace definition of the prefix for a different namespace.

Fixes #29
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/DOM-Parsing/pull/30

-- Commit Summary --

  * Only generate an attribute prefix if required

-- File Changes --

    M index.html (12)

-- Patch Links --

https://github.com/w3c/DOM-Parsing/pull/30.patch
https://github.com/w3c/DOM-Parsing/pull/30.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/pull/30

Received on Thursday, 13 July 2017 14:30:51 UTC