dom/interfaces/html/nsIDOMHTMLElement.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/html/nsIDOMHTMLElement.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,80 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIDOMElement.idl"
    1.10 +#include "nsIVariant.idl"
    1.11 +
    1.12 +interface nsIDOMHTMLMenuElement;
    1.13 +
    1.14 +/**
    1.15 + * The nsIDOMHTMLElement interface is the primary [X]HTML element
    1.16 + * interface. It represents a single [X]HTML element in the document
    1.17 + * tree.
    1.18 + *
    1.19 + * This interface is trying to follow the DOM Level 2 HTML specification:
    1.20 + * http://www.w3.org/TR/DOM-Level-2-HTML/
    1.21 + *
    1.22 + * with changes from the work-in-progress WHATWG HTML specification:
    1.23 + * http://www.whatwg.org/specs/web-apps/current-work/
    1.24 + */
    1.25 +[scriptable, uuid(e29ddc73-ac40-40fe-8bbd-14bf2d52c53a)]
    1.26 +interface nsIDOMHTMLElement : nsIDOMElement
    1.27 +{
    1.28 +  // metadata attributes
    1.29 +           attribute DOMString        id;
    1.30 +           attribute DOMString        title;
    1.31 +           attribute DOMString        lang;
    1.32 +           attribute DOMString        dir;
    1.33 +  [binaryname(DOMClassName)]
    1.34 +           attribute DOMString        className;
    1.35 +  readonly attribute nsISupports      dataset;
    1.36 +
    1.37 +           attribute boolean                        itemScope;
    1.38 +           attribute nsIVariant                     itemType;
    1.39 +           attribute DOMString                      itemId;
    1.40 +  readonly attribute nsISupports                    properties;
    1.41 +  // The following attributes are really nsDOMSettableTokenList, which has
    1.42 +  // PutForwards, so we express them as nsIVariants to deal with this.
    1.43 +           attribute nsIVariant                     itemValue;
    1.44 +           attribute nsIVariant                     itemProp;
    1.45 +           attribute nsIVariant                     itemRef;
    1.46 +
    1.47 +  // user interaction
    1.48 +  /**
    1.49 +   * Indicates that the element is not yet, or is no longer, relevant.
    1.50 +   *
    1.51 +   * See <http://www.whatwg.org/html5/#the-hidden-attribute>.
    1.52 +   */
    1.53 +           attribute boolean          hidden;
    1.54 +  [binaryname(DOMClick)]
    1.55 +  void click();
    1.56 +           attribute long             tabIndex;
    1.57 +  void focus();
    1.58 +  [binaryname(DOMBlur)]
    1.59 +  void blur();
    1.60 +           attribute DOMString        accessKey;
    1.61 +  readonly attribute DOMString        accessKeyLabel;
    1.62 +           attribute boolean          draggable;
    1.63 +           attribute DOMString        contentEditable;
    1.64 +  readonly attribute boolean          isContentEditable;
    1.65 +  readonly attribute nsIDOMHTMLMenuElement contextMenu;
    1.66 +           attribute boolean          spellcheck;
    1.67 +
    1.68 +
    1.69 +  // DOM Parsing and Serialization
    1.70 +           attribute DOMString        innerHTML;
    1.71 +           attribute DOMString        outerHTML;
    1.72 +  void insertAdjacentHTML(in DOMString position,
    1.73 +                          in DOMString text);
    1.74 +
    1.75 +
    1.76 +  // CSSOM View
    1.77 +  [optional_argc] void scrollIntoView([optional] in boolean top);
    1.78 +  readonly attribute nsIDOMElement    offsetParent;
    1.79 +  readonly attribute long             offsetTop;
    1.80 +  readonly attribute long             offsetLeft;
    1.81 +  readonly attribute long             offsetWidth;
    1.82 +  readonly attribute long             offsetHeight;
    1.83 +};

mercurial