diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-27 18:07:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-27 18:30:29 +0200 |
commit | 1de29e3f59bbb1aca4700a24ec2a9175e7749a30 (patch) | |
tree | e024adeca631d3ce47618addf8d07e1269c9b7bc | |
parent | a34258b3d79b5a71997100af1920ba9aca0ed909 (diff) | |
download | serenity-1de29e3f59bbb1aca4700a24ec2a9175e7749a30.zip |
LibWeb: Implement the "self closing start tag" tokenizer state
-rw-r--r-- | Libraries/LibWeb/Parser/HTMLTokenizer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp index 7c167acb2f..72b5230fdc 100644 --- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp +++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp @@ -759,6 +759,19 @@ _StartOfFunction: BEGIN_STATE(SelfClosingStartTag) { + ON('>') + { + m_current_token.m_tag.self_closing = true; + SWITCH_TO(Data); + } + ON_EOF + { + TODO(); + } + ANYTHING_ELSE + { + TODO(); + } } END_STATE |