|
| 1 | +diff -ru node_modules/xmldom.old/lib/dom.js node_modules/xmldom/lib/dom.js |
| 2 | +--- node_modules/xmldom.old/lib/dom.js 1985-10-26 18:15:00.000000000 +1000 |
| 3 | ++++ node_modules/xmldom/lib/dom.js 2021-04-07 17:52:51.494473360 +1000 |
| 4 | +@@ -23,7 +23,7 @@ |
| 5 | + pt.constructor = Class |
| 6 | + } |
| 7 | + } |
| 8 | +-var htmlns = 'http://www.w3.org/1999/xhtml' ; |
| 9 | ++var htmlns = 'http://www.w3.org/1999/html' ; |
| 10 | + // Node Types |
| 11 | + var NodeType = {} |
| 12 | + var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1; |
| 13 | +diff -ru node_modules/xmldom.old/lib/sax.js node_modules/xmldom/lib/sax.js |
| 14 | +--- node_modules/xmldom.old/lib/sax.js 1985-10-26 18:15:00.000000000 +1000 |
| 15 | ++++ node_modules/xmldom/lib/sax.js 2021-04-07 17:53:56.875198887 +1000 |
| 16 | +@@ -195,7 +195,7 @@ |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +- if(el.uri === 'http://www.w3.org/1999/xhtml' && !el.closed){ |
| 21 | ++ if(el.uri === 'http://www.w3.org/1999/html' && !el.closed){ |
| 22 | + end = parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder) |
| 23 | + }else{ |
| 24 | + end++; |
| 25 | +@@ -333,7 +333,7 @@ |
| 26 | + errorHandler.warning('attribute "'+value+'" missed quot(")!'); |
| 27 | + addAttribute(attrName, value.replace(/&#?\w+;/g,entityReplacer), start) |
| 28 | + }else{ |
| 29 | +- if(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !value.match(/^(?:disabled|checked|selected)$/i)){ |
| 30 | ++ if(currentNSMap[''] !== 'http://www.w3.org/1999/html' || !value.match(/^(?:disabled|checked|selected)$/i)){ |
| 31 | + errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!') |
| 32 | + } |
| 33 | + addAttribute(value, value, start) |
| 34 | +@@ -381,7 +381,7 @@ |
| 35 | + //case S_ATTR_NOQUOT_VALUE:void();break; |
| 36 | + case S_ATTR_SPACE: |
| 37 | + var tagName = el.tagName; |
| 38 | +- if(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !attrName.match(/^(?:disabled|checked|selected)$/i)){ |
| 39 | ++ if(currentNSMap[''] !== 'http://www.w3.org/1999/html' || !attrName.match(/^(?:disabled|checked|selected)$/i)){ |
| 40 | + errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!') |
| 41 | + } |
| 42 | + addAttribute(attrName, attrName, start); |
0 commit comments