LibWeb: Add IDL enum for fetch priority attribute
This commit is contained in:
parent
c6e9f0e7b5
commit
2fde20adf9
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/2fde20adf9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24 Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 9 additions and 0 deletions
|
@ -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) \
|
||||
|
|
|
@ -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"
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue