File tree Expand file tree Collapse file tree
src/nu/validator/htmlparser/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3361,7 +3361,7 @@ public final void endTag(ElementName elementName) throws SAXException {
33613361 }
33623362 if (stack [eltPos ].name == name ) {
33633363 while (currentPtr >= eltPos ) {
3364- popForeign (origPos );
3364+ popForeign (origPos , eltPos );
33653365 }
33663366 break endtagloop ;
33673367 }
@@ -5227,10 +5227,10 @@ private void pop() throws SAXException {
52275227 node .release (this );
52285228 }
52295229
5230- private void popForeign (int origPos ) throws SAXException {
5231- StackNode <T > node = stack [currentPtr ];
5232- if (origPos != currentPtr ) {
5233- markMalformedIfScript (node .node );
5230+ private void popForeign (int origPos , int eltPos ) throws SAXException {
5231+ StackNode <T > node = stack [currentPtr ];
5232+ if (origPos != currentPtr || eltPos != currentPtr ) {
5233+ markMalformedIfScript (node .node );
52345234 }
52355235 assert debugOnlyClearLastStackSlot ();
52365236 currentPtr --;
You can’t perform that action at this time.
0 commit comments