mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:24:57 +00:00
LibWeb: Remove DOM element deprecated_get_attribute()
This commit is contained in:
parent
c477f90df7
commit
a681429dff
40 changed files with 114 additions and 122 deletions
|
@ -4555,9 +4555,11 @@ RefPtr<CSS::StyleValue> parse_nonzero_dimension_value(StringView string)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-a-legacy-colour-value
|
||||
Optional<Color> parse_legacy_color_value(ByteString input)
|
||||
Optional<Color> parse_legacy_color_value(StringView string)
|
||||
{
|
||||
// 1. Let input be the string being parsed
|
||||
ByteString input = MUST(ByteString::from_utf8(string));
|
||||
|
||||
// 2. If input is the empty string, then return an error.
|
||||
if (input.is_empty())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue