File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments