From 9e890306f559c1a6f44f3a37c5bae044abea55da Mon Sep 17 00:00:00 2001 From: Werner Thie Date: Mon, 14 May 2018 12:05:12 -1000 Subject: [PATCH] Fix for the broken for getAttributeNS in Edge 42.17134.1.0 based on the idea that if there is no namespace specified by the caller the NS API's are neither queried no used --- nevow/js/Divmod/Runtime/__init__.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nevow/js/Divmod/Runtime/__init__.js b/nevow/js/Divmod/Runtime/__init__.js index 610c09e2..fa98316b 100644 --- a/nevow/js/Divmod/Runtime/__init__.js +++ b/nevow/js/Divmod/Runtime/__init__.js @@ -490,10 +490,11 @@ Divmod.Runtime.Platform.namedMethods({ */ 'getAttribute': function (self, node, localName, namespaceURI, namespaceIdentifier) { - if(namespaceURI == undefined && namespaceIdentifier == undefined) { + var noNS = (namespaceURI == undefined && namespaceIdentifier == undefined); + if (noNS) { localName = self._mangleAttributeName(localName); } - if (node.hasAttributeNS) { + if (!noNS && node.hasAttributeNS) { if (node.hasAttributeNS(namespaceURI, localName)) { return node.getAttributeNS(namespaceURI, localName); } else if (node.hasAttributeNS(namespaceIdentifier, localName)) {