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:
Geoff McLane 2015-10-08 17:02:46 +02:00
parent 7e69ceb3d1
commit adbad0379e
1 changed files with 11 additions and 0 deletions

View File

@ -2068,6 +2068,17 @@ static Node *GetCDATA( TidyDocImpl* doc, Node *container )
}
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);
if (!TY_(IsLetter)(c))