Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +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/. */
|
2001-01-21 12:21:24 +03:00
|
|
|
|
|
|
|
#include "nsIDOMElement.idl"
|
2012-06-05 03:49:57 +04:00
|
|
|
#include "nsIVariant.idl"
|
2001-01-21 12:21:24 +03:00
|
|
|
|
2011-10-30 00:03:55 +04:00
|
|
|
interface nsIDOMHTMLMenuElement;
|
|
|
|
|
2003-01-15 02:05:52 +03:00
|
|
|
/**
|
|
|
|
* The nsIDOMHTMLElement interface is the primary [X]HTML element
|
|
|
|
* interface. It represents a single [X]HTML element in the document
|
|
|
|
* tree.
|
|
|
|
*
|
2010-11-17 02:45:29 +03:00
|
|
|
* This interface is trying to follow the DOM Level 2 HTML specification:
|
2003-01-15 02:05:52 +03:00
|
|
|
* http://www.w3.org/TR/DOM-Level-2-HTML/
|
2010-11-17 02:45:29 +03:00
|
|
|
*
|
|
|
|
* with changes from the work-in-progress WHATWG HTML specification:
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/
|
2003-01-15 02:05:52 +03:00
|
|
|
*/
|
2013-04-02 08:04:19 +04:00
|
|
|
[scriptable, uuid(56d50046-31af-4cdc-af51-217fb2fd0a4d)]
|
2001-01-21 12:21:24 +03:00
|
|
|
interface nsIDOMHTMLElement : nsIDOMElement
|
|
|
|
{
|
2011-10-30 00:03:55 +04:00
|
|
|
// metadata attributes
|
2001-01-22 05:36:07 +03:00
|
|
|
attribute DOMString id;
|
|
|
|
attribute DOMString title;
|
|
|
|
attribute DOMString lang;
|
|
|
|
attribute DOMString dir;
|
|
|
|
attribute DOMString className;
|
2012-11-05 20:58:03 +04:00
|
|
|
readonly attribute nsISupports dataset;
|
2011-04-11 20:56:37 +04:00
|
|
|
|
2012-06-05 03:49:57 +04:00
|
|
|
attribute boolean itemScope;
|
|
|
|
attribute nsIVariant itemType;
|
|
|
|
attribute DOMString itemId;
|
2012-12-09 02:06:42 +04:00
|
|
|
readonly attribute nsISupports properties;
|
2012-06-05 03:49:57 +04: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-30 00:03:55 +04: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 11:19:52 +04:00
|
|
|
[binaryname(DOMClick)]
|
2011-10-30 00:03:55 +04:00
|
|
|
void click();
|
|
|
|
attribute long tabIndex;
|
|
|
|
void focus();
|
2012-11-11 03:30:15 +04:00
|
|
|
[binaryname(DOMBlur)]
|
2011-10-30 00:03:55 +04:00
|
|
|
void blur();
|
2011-04-11 20:56:37 +04:00
|
|
|
attribute DOMString accessKey;
|
2011-07-31 23:43:54 +04:00
|
|
|
readonly attribute DOMString accessKeyLabel;
|
2011-10-30 00:03:55 +04: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 16:02:22 +04:00
|
|
|
attribute DOMString outerHTML;
|
2011-10-30 00:03:55 +04: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;
|
2001-01-21 12:21:24 +03:00
|
|
|
};
|