summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-04 11:59:14 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-04 12:00:09 +0200
commitca33bc789559b264e9292549523e6e45e4d339eb (patch)
tree13ca5f40f154015bdf86612e3758a249d5d35529 /Libraries
parentb9549078ccf35b1d4a24bc0884d2ffc109ccedf6 (diff)
downloadserenity-ca33bc789559b264e9292549523e6e45e4d339eb.zip
LibWeb: Fix tokenization of attributes with empty attributes
We were neglecting to emit start tags for tags where the last attribute had no value. Also fix a parse error TODO that I hit while looking at this.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Parser/HTMLTokenizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
index a8c7cf1e86..4be19cbc13 100644
--- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
+++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
@@ -895,7 +895,7 @@ _StartOfFunction:
}
ON('>')
{
- SWITCH_TO(Data);
+ SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
}
ON_EOF
{
@@ -925,7 +925,8 @@ _StartOfFunction:
}
ON('>')
{
- TODO();
+ PARSE_ERROR();
+ SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
}
ANYTHING_ELSE
{