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

Ms2ger left a comment (w3c/DOM-Parsing#30)

This seems to still be buggy, as only _new prefix_ is set, and _candidate prefix_ remains null, so the step below will not serialize any prefix:
```js
  let root = parse('<r></r>');
  root.setAttributeNS('uri', 'p:name', 'value');
  serialize(root) // '<r xmlns:ns1="uri" name="value"/>'
```
(I'm integrating a fix elsewhere, no need to update this PR.)

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

Message ID: <w3c/DOM-Parsing/pull/30/c5195970953@github.com>

Received on Wednesday, 5 August 2026 18:51:28 UTC