diff --git a/Userland/Libraries/LibWeb/HTML/AttributeNames.h b/Userland/Libraries/LibWeb/HTML/AttributeNames.h index d26ff731b2c98d78cd8c8be02d153aa31eafc44f..d8d3900016c912965776a25b60338b0ad94d18d7 100644 --- a/Userland/Libraries/LibWeb/HTML/AttributeNames.h +++ b/Userland/Libraries/LibWeb/HTML/AttributeNames.h @@ -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) \ diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl index 960b92c161c839c856457bd87b4255951818f15c..491969bd5867e180bab351ce6ec02e8493de2dee 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl @@ -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" +};