Skip to content

Commit

Permalink
Merge pull request #103 from wthie/master
Browse files Browse the repository at this point in the history
Fix for issue #102
  • Loading branch information
mithrandi authored May 22, 2018
2 parents 685e2cc + 823be97 commit 76172b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nevow/js/Divmod/Runtime/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 76172b3

Please sign in to comment.