2012-12-26 06:00:47 +04:00
|
|
|
/* -*- 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/.
|
|
|
|
*/
|
|
|
|
|
2013-04-20 20:04:09 +04:00
|
|
|
[OverrideBuiltins]
|
2012-12-26 06:00:47 +04:00
|
|
|
interface HTMLDocument : Document {
|
2014-12-12 15:04:00 +03:00
|
|
|
[SetterThrows]
|
2018-06-07 22:29:23 +03:00
|
|
|
attribute DOMString domain;
|
2012-12-26 06:00:47 +04:00
|
|
|
[Throws]
|
|
|
|
attribute DOMString cookie;
|
|
|
|
// DOM tree accessors
|
2012-12-20 13:56:11 +04:00
|
|
|
[Throws]
|
|
|
|
getter object (DOMString name);
|
2012-12-26 06:00:47 +04:00
|
|
|
|
|
|
|
// dynamic markup insertion
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2018-03-29 01:01:46 +03:00
|
|
|
Document open(optional DOMString type, optional DOMString replace = ""); // type is ignored
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2016-01-05 19:51:08 +03:00
|
|
|
WindowProxy? open(DOMString url, DOMString name, DOMString features, optional boolean replace = false);
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2012-12-26 06:00:47 +04:00
|
|
|
void close();
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2012-12-26 06:00:47 +04:00
|
|
|
void write(DOMString... text);
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2012-12-26 06:00:47 +04:00
|
|
|
void writeln(DOMString... text);
|
|
|
|
|
2017-12-06 00:03:18 +03:00
|
|
|
[CEReactions, SetterThrows, SetterNeedsSubjectPrincipal]
|
2012-12-26 06:00:47 +04:00
|
|
|
attribute DOMString designMode;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws, NeedsSubjectPrincipal]
|
2012-12-26 06:00:47 +04:00
|
|
|
boolean execCommand(DOMString commandId, optional boolean showUI = false,
|
|
|
|
optional DOMString value = "");
|
2017-02-01 23:43:36 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2012-12-26 06:00:47 +04:00
|
|
|
boolean queryCommandEnabled(DOMString commandId);
|
|
|
|
[Throws]
|
|
|
|
boolean queryCommandIndeterm(DOMString commandId);
|
|
|
|
[Throws]
|
|
|
|
boolean queryCommandState(DOMString commandId);
|
2016-11-15 08:18:33 +03:00
|
|
|
[NeedsCallerType]
|
2012-12-26 06:00:47 +04:00
|
|
|
boolean queryCommandSupported(DOMString commandId);
|
|
|
|
[Throws]
|
|
|
|
DOMString queryCommandValue(DOMString commandId);
|
|
|
|
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, TreatNullAs=EmptyString] attribute DOMString fgColor;
|
|
|
|
[CEReactions, TreatNullAs=EmptyString] attribute DOMString linkColor;
|
|
|
|
[CEReactions, TreatNullAs=EmptyString] attribute DOMString vlinkColor;
|
|
|
|
[CEReactions, TreatNullAs=EmptyString] attribute DOMString alinkColor;
|
|
|
|
[CEReactions, TreatNullAs=EmptyString] attribute DOMString bgColor;
|
2012-12-26 06:00:47 +04:00
|
|
|
|
|
|
|
void clear();
|
|
|
|
|
2014-05-20 23:52:21 +04:00
|
|
|
readonly attribute HTMLAllCollection all;
|
2013-06-12 10:55:00 +04:00
|
|
|
|
2013-08-01 01:44:51 +04:00
|
|
|
// @deprecated These are old Netscape 4 methods. Do not use,
|
|
|
|
// the implementation is no-op.
|
|
|
|
// XXXbz do we actually need these anymore?
|
2014-02-09 12:04:39 +04:00
|
|
|
void captureEvents();
|
|
|
|
void releaseEvents();
|
2012-12-26 06:00:47 +04:00
|
|
|
};
|
2014-06-25 04:37:03 +04:00
|
|
|
|
|
|
|
partial interface HTMLDocument {
|
|
|
|
/*
|
|
|
|
* Number of nodes that have been blocked by
|
|
|
|
* the Safebrowsing API to prevent tracking.
|
|
|
|
*/
|
|
|
|
[ChromeOnly, Pure]
|
|
|
|
readonly attribute long blockedTrackingNodeCount;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* List of nodes that have been blocked by
|
|
|
|
* the Safebrowsing API to prevent tracking.
|
|
|
|
*/
|
|
|
|
[ChromeOnly, Pure]
|
|
|
|
readonly attribute NodeList blockedTrackingNodes;
|
2018-07-10 11:09:59 +03:00
|
|
|
|
|
|
|
[ChromeOnly]
|
|
|
|
void userInteractionForTesting();
|
2014-06-25 04:37:03 +04:00
|
|
|
};
|