From 14a7d813bd87ec88852815266c639e40e0b1c106 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 15 Dec 2022 21:05:59 +0100 Subject: git wtf moment --- src/html/htmlparser.nim | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/html/htmlparser.nim') diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim index 6fbc4ae7..f04a94f7 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -472,17 +472,6 @@ proc genericRCDATAElementParsingAlgorithm(parser: var HTML5Parser, token: Token) parser.oldInsertionMode = parser.insertionMode parser.insertionMode = TEXT -proc pushElement(parser: var HTML5Parser, node: Element) = - parser.openElements.add(node) - parser.tokenizer.hasnonhtml = not node.inHTMLNamespace() - -proc popElement(parser: var HTML5Parser): Element = - result = parser.openElements.pop() - if result.tagType == TAG_TEXTAREA: - result.resetElement() - if parser.openElements.len == 0: - parser.tokenizer.hasnonhtml = false - # 13.2.6.3 proc generateImpliedEndTags(parser: var HTML5Parser) = const tags = {TAG_DD, TAG_DT, TAG_LI, TAG_OPTGROUP, TAG_OPTION, TAG_P, -- cgit 1.4.1-2-gfad0