LibWeb: Implement HTMLLinkElement.fetchPriority
This commit is contained in:
parent
d1f884533e
commit
735859bc10
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/735859bc10 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24 Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 4 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <CSS/LinkStyle.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/Scripting/Fetching.idl>
|
||||
|
||||
// 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue