diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index cbcacabe1a0..4d732aceec1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -210,7 +210,8 @@ HTMLLinkElement::LinkProcessingOptions HTMLLinkElement::create_link_options() // document document options.document = &document; // FIXME: cryptographic nonce metadata The current value of el's [[CryptographicNonce]] internal slot - // FIXME: fetch priority the state of el's fetchpriority content attribute + // fetch priority the state of el's fetchpriority content attribute + options.fetch_priority = Fetch::Infrastructure::request_priority_from_string(get_attribute_value(HTML::AttributeNames::fetchpriority)).value_or(Fetch::Infrastructure::Request::Priority::Auto); // 3. If el has an href attribute, then set options's href to the value of el's href attribute. if (auto maybe_href = get_attribute(AttributeNames::href); maybe_href.has_value()) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.idl index c3b62a5633a..d28117e5317 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.idl @@ -1,5 +1,6 @@ #import #import +#import // https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement [Exposed=Window] @@ -22,7 +23,7 @@ interface HTMLLinkElement : HTMLElement { [FIXME, CEReactions] attribute DOMString referrerPolicy; [FIXME, SameObject, PutForwards=value] readonly attribute DOMTokenList blocking; [CEReactions, Reflect] attribute boolean disabled; - [FIXME, CEReactions] attribute DOMString fetchPriority; + [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority; // Obsolete [CEReactions, Reflect] attribute DOMString charset;