gecko-dev/dom/webidl/HTMLMetaElement.webidl
Emilio Cobos Álvarez ff3c28c8b1 Bug 1706179 - Add HTMLMetaElement.media. r=smaug
We don't use it because we don't use theme-color, but some sites are
starting to rely on it (comment 4) and it is trivial to support.

Differential Revision: https://phabricator.services.mozilla.com/D156667
2022-09-07 23:32:19 +00:00

34 lines
1.3 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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-meta-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.
*/
// https://html.spec.whatwg.org/#the-meta-element
[Exposed=Window]
interface HTMLMetaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, SetterThrows, Pure]
attribute DOMString name;
[CEReactions, SetterThrows, Pure]
attribute DOMString httpEquiv;
[CEReactions, SetterThrows, Pure]
attribute DOMString content;
[CEReactions, SetterThrows, Pure]
attribute DOMString media;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLMetaElement {
[CEReactions, SetterThrows, Pure]
attribute DOMString scheme;
};