mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Special-case initialization of HTML::AttributeNames::class_
Just do it after all the others instead of trying to be clever.
This commit is contained in:
parent
6c09420571
commit
21957745f7
Notes:
sideshowbarker
2024-07-19 05:51:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/21957745f7a
1 changed files with 2 additions and 8 deletions
|
@ -41,18 +41,12 @@ void initialize()
|
|||
return;
|
||||
|
||||
#define __ENUMERATE_HTML_ATTRIBUTE(name) \
|
||||
name = #name; \
|
||||
if (name.ends_with("_")) \
|
||||
name = name.view().substring_view(0, name.length() - 1);
|
||||
name = #name;
|
||||
ENUMERATE_HTML_ATTRIBUTES
|
||||
#undef __ENUMERATE_HTML_ATTRIBUTE
|
||||
|
||||
id = "id";
|
||||
// NOTE: Special case for the class attribute since it's a C++ keyword.
|
||||
class_ = "class";
|
||||
type = "type";
|
||||
href = "href";
|
||||
style = "style";
|
||||
name = "name";
|
||||
|
||||
s_initialized = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue