Issue #65 - if nonested then no endtag needed to decrement.
This is only if nonested is on, then a <script> tag has not incremented the nested, so likewise no need to treat an escaped close tag <\/script> as an end tage to decrement nested.
This commit is contained in:
parent
7e69ceb3d1
commit
adbad0379e
11
src/lexer.c
11
src/lexer.c
|
@ -2068,6 +2068,17 @@ static Node *GetCDATA( TidyDocImpl* doc, Node *container )
|
||||||
}
|
}
|
||||||
|
|
||||||
TY_(AddCharToLexer)(lexer, c);
|
TY_(AddCharToLexer)(lexer, c);
|
||||||
|
|
||||||
|
if (nonested) {
|
||||||
|
/*\
|
||||||
|
* Issue #65 - for version 5.1.14.EXP2
|
||||||
|
* If the nonested option is ON then the <script>
|
||||||
|
* tag did not bump nested, so no need to treat this as
|
||||||
|
* an end tag just to decrease nested, just continue!
|
||||||
|
\*/
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
c = TY_(ReadChar)(doc->docIn);
|
c = TY_(ReadChar)(doc->docIn);
|
||||||
|
|
||||||
if (!TY_(IsLetter)(c))
|
if (!TY_(IsLetter)(c))
|
||||||
|
|
Loading…
Reference in a new issue