diff --git a/Tests/LibWeb/Text/expected/HTML/short-legacy-color-value.txt b/Tests/LibWeb/Text/expected/HTML/short-legacy-color-value.txt new file mode 100644 index 0000000000..3a2d263b04 --- /dev/null +++ b/Tests/LibWeb/Text/expected/HTML/short-legacy-color-value.txt @@ -0,0 +1 @@ + PASS (didn't crash) diff --git a/Tests/LibWeb/Text/input/HTML/short-legacy-color-value.html b/Tests/LibWeb/Text/input/HTML/short-legacy-color-value.html new file mode 100644 index 0000000000..d37468df8c --- /dev/null +++ b/Tests/LibWeb/Text/input/HTML/short-legacy-color-value.html @@ -0,0 +1,7 @@ + +
+ diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index 99c93ab1f7..6de3d078f6 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -4879,6 +4879,9 @@ Optional