about summary refs log tree commit diff stats
path: root/src/html/htmlparser.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-25 22:49:32 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-25 22:49:32 +0200
commit3fb64fd6c7e747f76e47576ba37b3d05abd9e2fe (patch)
treef682b8c5fcf4e7f926d6ef67ce7570acf276d807 /src/html/htmlparser.nim
parent6a370551ae9e1217aa4fe60009208783f7e3245d (diff)
downloadchawan-3fb64fd6c7e747f76e47576ba37b3d05abd9e2fe.tar.gz
html: include SEARCH tag in parser
Diffstat (limited to 'src/html/htmlparser.nim')
-rw-r--r--src/html/htmlparser.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim
index 0791a3af..76ccd407 100644
--- a/src/html/htmlparser.nim
+++ b/src/html/htmlparser.nim
@@ -1637,7 +1637,8 @@ proc processInHTMLContent[Handle](parser: var HTML5Parser[Handle],
       ("<address>", "<article>", "<aside>", "<blockquote>", "<center>",
       "<details>", "<dialog>", "<dir>", "<div>", "<dl>", "<fieldset>",
       "<figcaption>", "<figure>", "<footer>", "<header>", "<hgroup>", "<main>",
-      "<menu>", "<nav>", "<ol>", "<p>", "<section>", "<summary>", "<ul>") => (block:
+      "<menu>", "<nav>", "<ol>", "<p>", "<search>", "<section>", "<summary>",
+      "<ul>") => (block:
         if parser.hasElementInButtonScope(TAG_P):
           parser.closeP()
         discard parser.insertHTMLElement(token)
@@ -1728,7 +1729,7 @@ proc processInHTMLContent[Handle](parser: var HTML5Parser[Handle],
        "</center>", "</details>", "</dialog>", "</dir>", "</div>", "</dl>",
        "</fieldset>", "</figcaption>", "</figure>", "</footer>", "</header>",
        "</hgroup>", "</listing>", "</main>", "</menu>", "</nav>", "</ol>",
-       "</pre>", "</section>", "</summary>", "</ul>") => (block:
+       "</pre>", "</search>", "</section>", "</summary>", "</ul>") => (block:
         if not parser.hasElementInScope(token.tagtype):
           parse_error ELEMENT_NOT_IN_SCOPE
         else: