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"
|
|
|
|
|
2011-10-29 13:03:55 -07:00
|
|
|
interface nsIDOMDOMStringMap;
|
|
|
|
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
|
|
|
*/
|
2012-04-11 14:55:21 -07:00
|
|
|
[scriptable, uuid(5C8B21BC-EF6E-4599-A26F-FACC05B4ADBE)]
|
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 id;
|
|
|
|
attribute DOMString title;
|
|
|
|
attribute DOMString lang;
|
|
|
|
attribute DOMString dir;
|
|
|
|
attribute DOMString className;
|
2011-10-29 13:03:55 -07:00
|
|
|
readonly attribute nsIDOMDOMStringMap dataset;
|
2011-04-11 09:56:37 -07:00
|
|
|
|
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;
|
|
|
|
void click();
|
|
|
|
attribute long tabIndex;
|
|
|
|
void focus();
|
|
|
|
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
|
|
|
};
|