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/.
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.
14 // https://html.spec.whatwg.org/multipage/semantics.html#the-link-element
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;
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;
42 [Pref="dom.element.blocking.enabled", SameObject, PutForwards=value]
43 readonly attribute DOMTokenList blocking;
44 [Pref="network.fetchpriority.enabled", CEReactions]
45 attribute DOMString fetchPriority;
47 HTMLLinkElement includes LinkStyle;
49 // https://html.spec.whatwg.org/multipage/obsolete.html#other-elements%2C-attributes-and-apis
50 partial interface HTMLLinkElement {
51 [CEReactions, SetterThrows, Pure]
52 attribute DOMString charset;
53 [CEReactions, SetterThrows, Pure]
54 attribute DOMString rev;
55 [CEReactions, SetterThrows, Pure]
56 attribute DOMString target;
59 // https://html.spec.whatwg.org/multipage/semantics.html#the-link-element
60 partial interface HTMLLinkElement {
61 [CEReactions, SetterThrows]
62 attribute DOMString integrity;
65 // https://html.spec.whatwg.org/multipage/links.html#link-type-preload
66 partial interface HTMLLinkElement {
68 attribute DOMString as;