SYNCERのロゴ
アイキャッチ画像

NonElementParentNode - 要素ではない親ノード

NonElementParentNodeは、要素ではない親ノードが備えるインターフェイスです。具体的には、DocumentDocumentFragmentです。

概要

名前
NonElementParentNode
IDL
[NoInterfaceObject,
 Exposed=Window]
interface NonElementParentNode {
  Element? getElementById(DOMString elementId);
};
Document implements NonElementParentNode;
DocumentFragment implements NonElementParentNode;
仕様書
https://dom.spec.whatwg.org/#nonelementparentnode

チュートリアル

NonElementParentNodeは、Document、またはDocumentFragmentが備えています。

document.getElementById( "hoge" ) ;

コンストラクタ

コンストラクタはありません。

プロパティ

固有のプロパティはありません。

メソッド

getElementById()

id属性を指定して要素を取得します。

定数

固有の定数はありません。

イベント

固有のイベントハンドラはありません。

サポート状況

クリックすると、バージョンごとの対応状況を確認できます。

FeaturesChromeFirefoxSafariEdgeIEOperaiOS SafariAndroid
NonElementParentNode
getElementById()
  • Twitterでシェア
  • Facebookでシェア
  • Google+でシェア
  • はてなブックマークでシェア
  • pocketに保存
  • LINEでシェア
更新履歴
2017年10月8日 (日)
コンテンツを公開しました。