[Bug 27344] Remove Attr.setAttributeNodeNS()?

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

--- Comment #11 from Philip Jägenstedt <philipj@opera.com> ---
Well yes, silly is only an argument when we're not constrained by Web compat.

Blink does use the qualified name when looking for an existing attribute, FWIW.
It also ignores case for HTML elements, which isn't per spec. There are
probably other minor differences as well.

Just to derail the discussion further, here's the simplest possible end state
that seems possible:

Element.prototype.setAttributeNode = function (newAttr) {
  var oldAttr = this.getAttributeNodeNS(newAttr.namespaceURI,
newAttr.localName);
  this.setAttributeNS(newAttr.namespaceURI, newAttr.localName, newAttr.value);
  return oldAttr;
}

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

Received on Tuesday, 18 November 2014 13:06:54 UTC