File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/nu/validator/htmlparser/impl Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3361,7 +3361,7 @@ public final void endTag(ElementName elementName) throws SAXException {
3361
3361
}
3362
3362
if (stack [eltPos ].name == name ) {
3363
3363
while (currentPtr >= eltPos ) {
3364
- popForeign (origPos );
3364
+ popForeign (origPos , eltPos );
3365
3365
}
3366
3366
break endtagloop ;
3367
3367
}
@@ -5227,10 +5227,10 @@ private void pop() throws SAXException {
5227
5227
node .release (this );
5228
5228
}
5229
5229
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 );
5234
5234
}
5235
5235
assert debugOnlyClearLastStackSlot ();
5236
5236
currentPtr --;
You can’t perform that action at this time.
0 commit comments