sax
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -1106,8 +1106,7 @@ ;(function (sax) { // wrapper for non-node envs | ||
if (parser.doctype && parser.doctype !== true) { | ||
parser.sgmlDecl += c | ||
continue; | ||
} | ||
if ((parser.sgmlDecl + c).toUpperCase() === CDATA) { | ||
if (parser.doctype && parser.doctype !== true && parser.sgmlDecl) { | ||
parser.state = S.DOCTYPE_DTD | ||
parser.doctype += '<!' + parser.sgmlDecl + c | ||
parser.sgmlDecl = '' | ||
} else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) { | ||
emitNode(parser, 'onopencdata') | ||
@@ -1180,2 +1179,4 @@ parser.state = S.CDATA | ||
parser.q = c | ||
} else { | ||
parser.doctype += c | ||
} | ||
@@ -1182,0 +1183,0 @@ continue |
@@ -5,3 +5,3 @@ { | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "lib/sax.js", | ||
@@ -8,0 +8,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
56017
1466