Fix nested tags in script tag.

#115
This commit is contained in:
N. Taylor Mullen 2014-09-08 17:08:36 -07:00
parent d72045ab66
commit 82b45387a1
1 changed files with 4 additions and 1 deletions

View File

@ -843,6 +843,9 @@ namespace Microsoft.AspNet.Razor.Parser
PutCurrentBack(); // Put back whatever was after the solidus
PutBack(solidus); // Put back '/'
PutBack(openAngle); // Put back '<'
// We just looked ahead, this NextToken will set CurrentSymbol to an open angle bracket.
NextToken();
}
if (seenEndScript)
@ -865,7 +868,7 @@ namespace Microsoft.AspNet.Razor.Parser
}
else
{
AcceptAndMoveNext(); // '<' (not the closing script tags open angle)
AcceptAndMoveNext(); // Accept '<' (not the closing script tag's open angle)
}
}
}