From bc54560e5942c9ff4b9049c034ad09a9f8446fb6 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 28 May 2023 15:04:40 +1200 Subject: LibWeb: Add Web::HTML::parse_legacy_color_value This function follows the "rules for parsing a legacy color value" which is used in some legacy attributes, such as 'bgcolor' in the body element. --- Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h') diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h index cb0257e755..9d7d83d95d 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h @@ -6,6 +6,7 @@ #pragma once +#include #include #include #include @@ -200,5 +201,6 @@ private: RefPtr parse_dimension_value(StringView); RefPtr parse_nonzero_dimension_value(StringView); +Optional parse_legacy_color_value(DeprecatedString input); } -- cgit v1.2.3