Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / webidl / HTMLLinkElement.webidl
blob7f0ecb4f16cdc39176cc820b574d3fcb560e45b1
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
8  * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
9  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
10  * Opera Software ASA. You are granted a license to use, reproduce
11  * and create derivative works of this document.
12  */
14 // http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
15 [Exposed=Window]
16 interface HTMLLinkElement : HTMLElement {
17   [HTMLConstructor] constructor();
19   [CEReactions, SetterThrows, Pure]
20            attribute boolean disabled;
21   [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure]
22            attribute DOMString href;
23   [CEReactions, SetterThrows, Pure]
24            attribute DOMString? crossOrigin;
25   [CEReactions, SetterThrows, Pure]
26            attribute DOMString rel;
27   [PutForwards=value]
28   readonly attribute DOMTokenList relList;
29   [CEReactions, SetterThrows, Pure]
30            attribute DOMString media;
31   [CEReactions, SetterThrows, Pure]
32            attribute DOMString hreflang;
33   [CEReactions, SetterThrows, Pure]
34            attribute DOMString type;
35   [CEReactions, SetterThrows, Pure]
36            attribute DOMString referrerPolicy;
37   [PutForwards=value] readonly attribute DOMTokenList sizes;
38   [CEReactions, SetterThrows, Pure]
39            attribute USVString imageSrcset;
40   [CEReactions, SetterThrows, Pure]
41            attribute USVString imageSizes;
43 HTMLLinkElement includes LinkStyle;
45 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
46 partial interface HTMLLinkElement {
47   [CEReactions, SetterThrows, Pure]
48            attribute DOMString charset;
49   [CEReactions, SetterThrows, Pure]
50            attribute DOMString rev;
51   [CEReactions, SetterThrows, Pure]
52            attribute DOMString target;
55 // https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmllinkelement-1
56 partial interface HTMLLinkElement {
57   [CEReactions, SetterThrows]
58   attribute DOMString integrity;
61 //https://w3c.github.io/preload/
62 partial interface HTMLLinkElement {
63   [SetterThrows, Pure]
64            attribute DOMString as;