LibWeb: Add IDL enum for fetch priority attribute

This commit is contained in:
Jamie Mansfield 2024-05-27 09:45:05 +01:00 committed by Tim Ledbetter
parent c6e9f0e7b5
commit 2fde20adf9
Notes: sideshowbarker 2024-07-17 22:41:14 +09:00
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,7 @@ namespace AttributeNames {
__ENUMERATE_HTML_ATTRIBUTE(enctype) \
__ENUMERATE_HTML_ATTRIBUTE(event) \
__ENUMERATE_HTML_ATTRIBUTE(face) \
__ENUMERATE_HTML_ATTRIBUTE(fetchpriority) \
__ENUMERATE_HTML_ATTRIBUTE(for_) \
__ENUMERATE_HTML_ATTRIBUTE(form) \
__ENUMERATE_HTML_ATTRIBUTE(formaction) \

View File

@ -11,3 +11,11 @@ enum LazyLoadingAttribute {
"lazy",
"eager"
};
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#fetch-priority-attributes
[MissingValueDefault=auto, InvalidValueDefault=auto]
enum FetchPriorityAttribute {
"high",
"low",
"auto"
};