Skip to content

Commit 79480c1

Browse files
committed
chore: [#1629] Continues on implementation
1 parent 50acb39 commit 79480c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/happy-dom/src/html-parser/HTMLParser.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export default class HTMLParser {
148148
private rootDocument: Document | null = null;
149149
private nodeStack: Node[] = [];
150150
private tagNameStack: string[] = [];
151+
private impliedEndTags: string[] = [];
151152
private startTagIndex = 0;
152153
private markupRegExp: RegExp | null = null;
153154
private readState: MarkupReadStateEnum = MarkupReadStateEnum.data;
@@ -712,7 +713,14 @@ export default class HTMLParser {
712713
break;
713714
case 'li':
714715
this.framesetOk = false;
716+
for(let i = this.nodeStack.length - 1; i >= 0; i--){
717+
const node = this.nodeStack[i];
718+
if(node[PropertySymbol.tagName] === 'LI'){
719+
this.popTagName('li');
720+
}
721+
}
715722
this.popTagName('li');
723+
if()
716724
}
717725
break;
718726
}

0 commit comments

Comments
 (0)