2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-02-08 16:50:30 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
|
2019-10-17 18:38:39 +03:00
|
|
|
[Exposed=Window]
|
2013-02-08 16:50:30 +04:00
|
|
|
interface HTMLLinkElement : HTMLElement {
|
2019-10-17 18:38:39 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2019-04-19 16:31:05 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute boolean disabled;
|
2017-12-21 01:43:18 +03:00
|
|
|
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString href;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2014-09-06 06:42:33 +04:00
|
|
|
attribute DOMString? crossOrigin;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString rel;
|
2016-02-12 01:50:42 +03:00
|
|
|
[PutForwards=value]
|
2014-03-11 16:04:26 +04:00
|
|
|
readonly attribute DOMTokenList relList;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString media;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString hreflang;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString type;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2016-06-24 05:38:47 +03:00
|
|
|
attribute DOMString referrerPolicy;
|
2016-02-12 01:50:42 +03:00
|
|
|
[PutForwards=value] readonly attribute DOMTokenList sizes;
|
2020-05-11 17:08:58 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute USVString imageSrcset;
|
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute USVString imageSizes;
|
2013-02-08 16:50:30 +04:00
|
|
|
};
|
2019-09-24 18:22:26 +03:00
|
|
|
HTMLLinkElement includes LinkStyle;
|
2013-02-08 16:50:30 +04:00
|
|
|
|
|
|
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
partial interface HTMLLinkElement {
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString charset;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString rev;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-08 16:50:30 +04:00
|
|
|
attribute DOMString target;
|
|
|
|
};
|
2014-05-27 17:26:48 +04:00
|
|
|
|
2015-08-13 06:19:11 +03:00
|
|
|
// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmllinkelement-1
|
|
|
|
partial interface HTMLLinkElement {
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2015-08-13 06:19:11 +03:00
|
|
|
attribute DOMString integrity;
|
|
|
|
};
|
2017-07-10 16:05:56 +03:00
|
|
|
|
|
|
|
//https://w3c.github.io/preload/
|
|
|
|
partial interface HTMLLinkElement {
|
|
|
|
[SetterThrows, Pure]
|
|
|
|
attribute DOMString as;
|
|
|
|
};
|