[Bug 27344] Remove Attr.setAttributeNodeNS()?

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

--- Comment #5 from Arkadiusz Michalski (Spirit) <crimsteam@gmail.com> ---
> Did you paste the wrong link? It's true that a bunch of Attr-related methods
> were removed from the spec and then restored, but I don't think any *NS()
> method played any part.

No, it's correct, before all this methods have been restored I analyzed your
counters and see that *NS() + several other methods have low usage, but event
that they are all bring back. So I thought that this is a reason:
"As discussed on IRC it probably makes no sense to try to remove any of these
as the complexity in all of them is the concept of attributes holding a
reference to their element and we cannot get rid of that."

> I trust that Blink is not per the current DOM Standard in many respects. If
> there are any particularly bad cases that give you trouble, let me know and
> I'll look into fixing them. Given the usage, I can't imagine
> setAttributeNodeNS() is such a case.

In my perspective Blink isn't so bad here because I don't use all this old
stuff, just only test how it's looks like after restored to DOM (in Firefox,
Chrome and IE). Firefox is the closest, Chrome has some problems, mainly with
the "get an attribute by name" algorithm:
https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
which is often used in other algorithms and methods. This causes that even
Element.getAttribute() method is not correct in Blink (per actual sepc).

Of course I'm not saying that these *NS() methods should stay and if other want
kick them, then I'll be happy:). I remember that other methods have the same
low counter usage (like Document.createAttributeNS or
NamedNodeMap.getNamedItemNS). After taking decision about future of this
methods I can look again to my notes and write exactly which methods are wrong
in Blink (if you still interested).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 18 November 2014 01:10:39 UTC