Skip to content

Commit 5dc941c

Browse files
committed
Update bin/page* to not use nodeName and nodeValue on html attributes (changed in jsdom 7.1.0)
1 parent 5f9226c commit 5dc941c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bin/page2mml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ function getXMLNS(document) {
116116
var html = document.head.parentNode;
117117
for (var i = 0, m = html.attributes.length; i < m; i++) {
118118
var attr = html.attributes[i];
119-
if (attr.nodeName.substr(0,6) === "xmlns:" &&
120-
attr.nodeValue === "http://www.w3.org/1998/Math/MathML")
121-
{return attr.nodeName.substr(6)}
119+
if (attr.name.substr(0,6) === "xmlns:" &&
120+
attr.value === "http://www.w3.org/1998/Math/MathML")
121+
{return attr.name.substr(6)}
122122
}
123123
return "mml";
124124
}

bin/page2png

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ function getXMLNS(document) {
142142
var html = document.head.parentNode;
143143
for (var i = 0, m = html.attributes.length; i < m; i++) {
144144
var attr = html.attributes[i];
145-
if (attr.nodeName.substr(0,6) === "xmlns:" &&
146-
attr.nodeValue === "http://www.w3.org/1998/Math/MathML")
147-
{return attr.nodeName.substr(6)}
145+
if (attr.name.substr(0,6) === "xmlns:" &&
146+
attr.value === "http://www.w3.org/1998/Math/MathML")
147+
{return attr.name.substr(6)}
148148
}
149149
return "mml";
150150
}

bin/page2svg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ function getXMLNS(document) {
150150
var html = document.head.parentNode;
151151
for (var i = 0, m = html.attributes.length; i < m; i++) {
152152
var attr = html.attributes[i];
153-
if (attr.nodeName.substr(0,6) === "xmlns:" &&
154-
attr.nodeValue === "http://www.w3.org/1998/Math/MathML")
155-
{return attr.nodeName.substr(6)}
153+
if (attr.name.substr(0,6) === "xmlns:" &&
154+
attr.value === "http://www.w3.org/1998/Math/MathML")
155+
{return attr.name.substr(6)}
156156
}
157157
return "mml";
158158
}

0 commit comments

Comments
 (0)