mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Add attribute list that must always be compared without casing
This commit is contained in:
committed by
Andreas Kling
parent
68d84755f4
commit
2b30414c1d
@@ -75,6 +75,56 @@ public:
|
||||
|
||||
[[nodiscard]] LengthOrCalculated parse_as_sizes_attribute();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors
|
||||
static constexpr Array case_insensitive_html_attributes = {
|
||||
"accept"sv,
|
||||
"accept-charset"sv,
|
||||
"align"sv,
|
||||
"alink"sv,
|
||||
"axis"sv,
|
||||
"bgcolor"sv,
|
||||
"charset"sv,
|
||||
"checked"sv,
|
||||
"clear"sv,
|
||||
"codetype"sv,
|
||||
"color"sv,
|
||||
"compact"sv,
|
||||
"declare"sv,
|
||||
"defer"sv,
|
||||
"dir"sv,
|
||||
"direction"sv,
|
||||
"disabled"sv,
|
||||
"enctype"sv,
|
||||
"face"sv,
|
||||
"frame"sv,
|
||||
"hreflang"sv,
|
||||
"http-equiv"sv,
|
||||
"lang"sv,
|
||||
"language"sv,
|
||||
"link"sv,
|
||||
"media"sv,
|
||||
"method"sv,
|
||||
"multiple"sv,
|
||||
"nohref"sv,
|
||||
"noresize"sv,
|
||||
"noshade"sv,
|
||||
"nowrap"sv,
|
||||
"readonly"sv,
|
||||
"rel"sv,
|
||||
"rev"sv,
|
||||
"rules"sv,
|
||||
"scope"sv,
|
||||
"scrolling"sv,
|
||||
"selected"sv,
|
||||
"shape"sv,
|
||||
"target"sv,
|
||||
"text"sv,
|
||||
"type"sv,
|
||||
"valign"sv,
|
||||
"valuetype"sv,
|
||||
"vlink"sv,
|
||||
};
|
||||
|
||||
private:
|
||||
Parser(ParsingContext const&, Vector<Token>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user