Skip to content

Commit

Permalink
chore: [#1629] Continues on implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Jan 14, 2025
1 parent 50acb39 commit 79480c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/happy-dom/src/html-parser/HTMLParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default class HTMLParser {
private rootDocument: Document | null = null;
private nodeStack: Node[] = [];
private tagNameStack: string[] = [];
private impliedEndTags: string[] = [];
private startTagIndex = 0;
private markupRegExp: RegExp | null = null;
private readState: MarkupReadStateEnum = MarkupReadStateEnum.data;
Expand Down Expand Up @@ -712,7 +713,14 @@ export default class HTMLParser {
break;
case 'li':
this.framesetOk = false;
for(let i = this.nodeStack.length - 1; i >= 0; i--){
const node = this.nodeStack[i];
if(node[PropertySymbol.tagName] === 'LI'){
this.popTagName('li');
}
}
this.popTagName('li');
if()
}
break;
}
Expand Down

0 comments on commit 79480c1

Please sign in to comment.