mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb: Use the [Reflect] attribute to implement HTMLLinkElement.as
Also ensure that all valid potential destinations are allowed permitted.
This commit is contained in:
parent
aafc829e6d
commit
4ad8ba11d5
Notes:
github-actions[bot]
2024-11-29 08:49:55 +00:00
Author: https://github.com/tcl3
Commit: 4ad8ba11d5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2627
3 changed files with 29 additions and 21 deletions
|
@ -3,6 +3,34 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/Scripting/Fetching.idl>
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-potential-destination
|
||||
enum PotentialDestination {
|
||||
"",
|
||||
"audio",
|
||||
"audioworklet",
|
||||
"document",
|
||||
"embed",
|
||||
"font",
|
||||
"frame",
|
||||
"iframe",
|
||||
"image",
|
||||
"json",
|
||||
"manifest",
|
||||
"object",
|
||||
"paintworklet",
|
||||
"report",
|
||||
"script",
|
||||
"serviceworker",
|
||||
"sharedworker",
|
||||
"style",
|
||||
"track",
|
||||
"video",
|
||||
"webidentity",
|
||||
"worker",
|
||||
"xslt",
|
||||
"fetch"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement
|
||||
[Exposed=Window]
|
||||
interface HTMLLinkElement : HTMLElement {
|
||||
|
@ -12,7 +40,7 @@ interface HTMLLinkElement : HTMLElement {
|
|||
[CEReactions, Reflect, URL] attribute USVString href;
|
||||
[CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
|
||||
[CEReactions, Reflect] attribute DOMString rel;
|
||||
[CEReactions] attribute DOMString as;
|
||||
[CEReactions, Reflect, Enumerated=PotentialDestination] attribute DOMString as;
|
||||
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
||||
[CEReactions, Reflect] attribute DOMString media;
|
||||
[CEReactions, Reflect] attribute DOMString integrity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue