2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "nsIDOMElement.idl"
|
2012-06-04 16:49:57 -07:00
|
|
|
#include "nsIVariant.idl"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-10-29 13:03:55 -07:00
|
|
|
interface nsIDOMHTMLMenuElement;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/**
|
|
|
|
* The nsIDOMHTMLElement interface is the primary [X]HTML element
|
|
|
|
* interface. It represents a single [X]HTML element in the document
|
|
|
|
* tree.
|
|
|
|
*
|
2010-11-16 15:45:29 -08:00
|
|
|
* This interface is trying to follow the DOM Level 2 HTML specification:
|
2007-03-22 10:30:00 -07:00
|
|
|
* http://www.w3.org/TR/DOM-Level-2-HTML/
|
2010-11-16 15:45:29 -08:00
|
|
|
*
|
|
|
|
* with changes from the work-in-progress WHATWG HTML specification:
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2014-11-13 13:32:24 -08:00
|
|
|
[uuid(b0c42392-d0e7-4f6a-beb5-a698ce648945)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIDOMHTMLElement : nsIDOMElement
|
|
|
|
{
|
2011-10-29 13:03:55 -07:00
|
|
|
// metadata attributes
|
2007-03-22 10:30:00 -07:00
|
|
|
attribute DOMString title;
|
|
|
|
attribute DOMString lang;
|
|
|
|
attribute DOMString dir;
|
2012-11-05 08:58:03 -08:00
|
|
|
readonly attribute nsISupports dataset;
|
2011-04-11 09:56:37 -07:00
|
|
|
|
2012-06-04 16:49:57 -07:00
|
|
|
attribute boolean itemScope;
|
|
|
|
attribute nsIVariant itemType;
|
|
|
|
attribute DOMString itemId;
|
2012-12-08 14:06:42 -08:00
|
|
|
readonly attribute nsISupports properties;
|
2012-06-04 16:49:57 -07:00
|
|
|
// The following attributes are really nsDOMSettableTokenList, which has
|
|
|
|
// PutForwards, so we express them as nsIVariants to deal with this.
|
|
|
|
attribute nsIVariant itemValue;
|
|
|
|
attribute nsIVariant itemProp;
|
|
|
|
attribute nsIVariant itemRef;
|
|
|
|
|
2011-10-29 13:03:55 -07:00
|
|
|
// user interaction
|
|
|
|
/**
|
|
|
|
* Indicates that the element is not yet, or is no longer, relevant.
|
|
|
|
*
|
|
|
|
* See <http://www.whatwg.org/html5/#the-hidden-attribute>.
|
|
|
|
*/
|
|
|
|
attribute boolean hidden;
|
2012-10-06 00:19:52 -07:00
|
|
|
[binaryname(DOMClick)]
|
2011-10-29 13:03:55 -07:00
|
|
|
void click();
|
|
|
|
attribute long tabIndex;
|
|
|
|
void focus();
|
2012-11-10 15:30:15 -08:00
|
|
|
[binaryname(DOMBlur)]
|
2011-10-29 13:03:55 -07:00
|
|
|
void blur();
|
2011-04-11 09:56:37 -07:00
|
|
|
attribute DOMString accessKey;
|
2011-07-31 12:43:54 -07:00
|
|
|
readonly attribute DOMString accessKeyLabel;
|
2011-10-29 13:03:55 -07:00
|
|
|
attribute boolean draggable;
|
|
|
|
attribute DOMString contentEditable;
|
|
|
|
readonly attribute boolean isContentEditable;
|
|
|
|
readonly attribute nsIDOMHTMLMenuElement contextMenu;
|
|
|
|
attribute boolean spellcheck;
|
|
|
|
|
|
|
|
|
|
|
|
// DOM Parsing and Serialization
|
|
|
|
attribute DOMString innerHTML;
|
2011-11-10 04:02:22 -08:00
|
|
|
attribute DOMString outerHTML;
|
2011-10-29 13:03:55 -07:00
|
|
|
void insertAdjacentHTML(in DOMString position,
|
|
|
|
in DOMString text);
|
|
|
|
|
|
|
|
|
|
|
|
// CSSOM View
|
|
|
|
[optional_argc] void scrollIntoView([optional] in boolean top);
|
|
|
|
readonly attribute nsIDOMElement offsetParent;
|
|
|
|
readonly attribute long offsetTop;
|
|
|
|
readonly attribute long offsetLeft;
|
|
|
|
readonly attribute long offsetWidth;
|
|
|
|
readonly attribute long offsetHeight;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|