소스 검색

LibWeb: Add missing special tag case in the "in body" insertion mode

Andreas Kling 5 년 전
부모
커밋
f4778d1ba0
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

+ 4 - 1
Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

@@ -1228,7 +1228,10 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
                 m_stack_of_open_elements.pop();
                 break;
             }
-            // FIXME: Handle special elements!
+            if (is_special_tag(node->tag_name())) {
+                PARSE_ERROR();
+                return;
+            }
         }
         return;
     }