Document interface

ブラウザーに読み込まれ、Web ページのコンテンツ (DOM ツリー) へのエントリ ポイントとして機能する Web ページ。

Extends

Node,DocumentAndElementEventHandlers,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase

プロパティ

alinkColor

文書内のすべてのアクティブなリンクの色を設定または取得します。

all

オブジェクトに含まれる要素のコレクションへの参照を返します。

anchors

名前や id プロパティを持つすべてのオブジェクトのコレクションを取得します。 このコレクション内のオブジェクトは HTML ソース順です。

applets

ドキュメント内のすべてのアプレット オブジェクトのコレクションを取得します。

bgColor

非推奨になりました。 オブジェクトの背景の色を示す値を設定または取得します。

body

ドキュメント本文の先頭と末尾を指定します。

characterSet

ドキュメントのエンコードを返します。

charset

オブジェクトのエンコードに使用される文字セットを取得または設定します。

compatMode

オブジェクトに対して標準準拠モードがオンになっているかどうかを示す値を取得します。

contentType

ドキュメントのコンテンツ タイプを返します。

cookie

ドキュメントに適用される HTTP Cookie を返します。 このリソースに Cookie または Cookie を適用できない場合は、空の文字列が返されます。

を設定して、要素の HTTP Cookie のセットに新しい Cookie を追加できます。

コンテンツが一意の配信元 (サンドボックス属性を持つ iframe など) にサンドボックス化されている場合は、取得と設定時に "SecurityError" DOMException がスローされます。

currentScript

要素がクラシック スクリプトを表す限り、現在実行中の script 要素または SVG スクリプト要素を返します。 再入可能なスクリプト実行の場合、 は、まだ実行を完了していないものの中で、最後に実行を開始したものを返します。

Document が現在スクリプトまたは SVG スクリプト要素を実行していない場合 (実行中のスクリプトがイベント ハンドラーまたはタイムアウトであるため)、または現在実行中のスクリプトまたは SVG スクリプト要素がモジュール スクリプトを表している場合は null を返します。

defaultView

作業中の文書の Window オブジェクトを返します。

designMode

ドキュメントを編集できるかどうかを示す値を設定または取得します。

dir

オブジェクトの読み取り順序を示す値を設定または取得します。

doctype

現在のドキュメントに関連付けられているドキュメントの種類の宣言を表す オブジェクトを取得します。

documentElement

ドキュメントのルート ノードへの参照を取得します。

documentURI

ドキュメントの URL を返します。

domain

ドキュメントのセキュリティ ドメインを設定または取得します。

embeds

ドキュメント内のすべての埋め込みオブジェクトのコレクションを取得します。

fgColor

文書の前景 (テキスト) の色を設定または取得します。

forms

ドキュメント内のすべてのフォーム オブジェクトのコレクションをソース順に取得します。

fullscreen
fullscreenEnabled

文書に要素を全画面表示する機能があり、全画面表示がサポートされている場合は true、それ以外の場合は false を返します。

head

head 要素を返します。

hidden
images

ドキュメント内の img オブジェクトのコレクションをソース順に取得します。

implementation

現在のドキュメントの実装オブジェクトを取得します。

inputEncoding

ドキュメント オブジェクトに読み込まれる Web ページの作成に使用される文字エンコードを返します。

lastModified

ページが最後に変更された日付を取得します (ページに指定されている場合)。

linkColor

ドキュメント リンクの色を設定または取得します。

links

href プロパティとドキュメント内のすべての領域オブジェクトを指定するすべてのオブジェクトのコレクションを取得します。

location

現在の URL に関する情報が含まれます。

mozCancelFullScreen
msExitFullscreen
onfullscreenchange
onfullscreenerror
onpointerlockchange
onpointerlockerror
onreadystatechange

オブジェクトの状態が変更されたときに発生します。

onvisibilitychange
ownerDocument
pictureInPictureEnabled
plugins

Document 内の埋め込み要素の HTMLCollection を返します。

readyState

オブジェクトの現在の状態を示す値を取得します。

referrer

ユーザーを現在のページに参照した場所の URL を取得します。

rootElement
scripts

ドキュメント内のすべてのスクリプト オブジェクトのコレクションを取得します。

scrollingElement
timeline
title

ドキュメントのタイトルを格納します。

URL

現在のドキュメントの URL を設定または取得します。

visibilityState
vlinkColor

ユーザーがアクセスしたリンクの色を設定または取得します。

webkitExitFullscreen

継承されたプロパティ

activeElement

キー イベントのルーティング先またはルーティング先となるドキュメント内の最も深い要素を返します。 これは、大まかに言えば、ドキュメント内のフォーカスされた要素です。

この API の目的上、子参照コンテキストにフォーカスがある場合、そのコンテナーは親参照コンテキストにフォーカスされます。 たとえば、ユーザーが iframe 内のテキスト コントロールにフォーカスを移動した場合、iframe は iframe のノード ドキュメント内の activeElement API によって返される要素です。

同様に、フォーカスされた要素が documentOrShadowRoot とは異なるノード ツリーにある場合、documentOrShadowRoot がフォーカスされた要素のシャドウを含む包括的な先祖である場合、返される要素は documentOrShadowRoot と同じノード ツリー内にあるホストになり、そうでない場合は null になります。

adoptedStyleSheets
ATTRIBUTE_NODE
baseURI

ノードのノード ドキュメントのドキュメントベース URL を返します。

CDATA_SECTION_NODE

node は CDATASection ノードです。

childElementCount
childNodes

子を返します。

children

子要素を返します。

COMMENT_NODE

node は Comment ノードです。

DOCUMENT_FRAGMENT_NODE

node は DocumentFragment ノードです。

DOCUMENT_NODE

ノードはドキュメントです。

DOCUMENT_POSITION_CONTAINED_BY

other がノードの子孫である場合に設定します。

DOCUMENT_POSITION_CONTAINS

other がノードの先祖である場合に設定します。

DOCUMENT_POSITION_DISCONNECTED

ノードと他のノードが同じツリーにない場合に設定します。

DOCUMENT_POSITION_FOLLOWING

other がノードをフォローしている場合に設定します。

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING

other がノードの前にある場合に設定します。

DOCUMENT_TYPE_NODE

node は doctype です。

ELEMENT_NODE

node は要素です。

ENTITY_NODE
ENTITY_REFERENCE_NODE
firstChild

最初の子を返します。

firstElementChild

要素である最初の子を返し、それ以外の場合は null を返します。

fonts
fullscreenElement

ドキュメントの全画面表示要素を返します。

isConnected

ノードが接続されている場合は true、それ以外の場合は false を返します。

lastChild

最後の子を返します。

lastElementChild

要素である最後の子を返し、それ以外の場合は null を返します。

nextSibling

次の兄弟を返します。

nodeName

ノードの種類に適した文字列を返します。

nodeType

ノードの種類を返します。

nodeValue
NOTATION_NODE
onabort

ユーザーがダウンロードを中止すると発生します。

onanimationcancel
onanimationend
onanimationiteration
onanimationstart
onauxclick
onbeforeinput
onblur

オブジェクトが入力フォーカスを失うと発生します。

oncancel
oncanplay

再生が可能な場合に発生しますが、さらにバッファリングが必要になります。

oncanplaythrough
onchange

オブジェクトまたは選択範囲の内容が変更されたときに発生します。

onclick

ユーザーがオブジェクトのマウスの左ボタンをクリックしたときに発生します

onclose
oncontextmenu

ユーザーがクライアント領域でマウスの右ボタンをクリックし、コンテキスト メニューを開くと発生します。

oncopy
oncuechange
oncut
ondblclick

ユーザーがオブジェクトをダブルクリックすると発生します。

ondrag

ドラッグ操作中にソース オブジェクトに対して継続的に起動します。

ondragend

ユーザーがドラッグ操作の終了時にマウスを離すと、ソース オブジェクトに対して起動します。

ondragenter

ユーザーがオブジェクトを有効なドロップ ターゲットにドラッグすると、ターゲット要素に対して発生します。

ondragleave

ユーザーがドラッグ操作中に有効なドロップ ターゲットからマウスを移動すると、ターゲット オブジェクトに対して発生します。

ondragover

ユーザーが有効なドロップ ターゲットの上にオブジェクトをドラッグしている間、ターゲット要素に対して継続的に起動します。

ondragstart

ユーザーがテキスト選択または選択したオブジェクトのドラッグを開始すると、ソース オブジェクトに対して発生します。

ondrop
ondurationchange

duration 属性が更新されたときに発生します。

onemptied

メディア要素が初期状態にリセットされるときに発生します。

onended

再生の終了に達したときに発生します。

onerror

オブジェクトの読み込み中にエラーが発生すると発生します。

onfocus

オブジェクトがフォーカスを受け取ると発生します。

onformdata
ongotpointercapture
oninput
oninvalid
onkeydown

ユーザーがキーを押すと発生します。

onkeypress

ユーザーが英数字キーを押すと発生します。

onkeyup

ユーザーがキーを離したときに発生します。

onload

ブラウザーがオブジェクトを読み込んだ直後に起動します。

onloadeddata

メディア データが現在の再生位置に読み込まれるときに発生します。

onloadedmetadata

メディアの期間とディメンションが決定されたときに発生します。

onloadstart

Internet Explorer がメディア データの検索を開始したときに発生します。

onlostpointercapture
onmousedown

ユーザーがいずれかのマウス ボタンでオブジェクトをクリックすると発生します。

onmouseenter
onmouseleave
onmousemove

ユーザーがオブジェクトの上にマウスを移動すると発生します。

onmouseout

ユーザーがマウス ポインターをオブジェクトの境界の外に移動したときに発生します。

onmouseover

ユーザーがマウス ポインターをオブジェクトに移動すると発生します。

onmouseup

マウスがオブジェクトの上にあるときに、ユーザーがマウス ボタンを離したときに発生します。

onpaste
onpause

再生が一時停止したときに発生します。

onplay

再生メソッドが要求されたときに発生します。

onplaying

オーディオまたはビデオの再生が開始されたときに発生します。

onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onprogress

メディア データのダウンロード中の進行状況を示すために発生します。

onratechange

再生レートが増減したときに発生します。

onreset

ユーザーがフォームをリセットしたときに発生します。

onresize
onscroll

ユーザーがオブジェクトのスクロール バーのスクロール ボックスの位置を変更したときに発生します。

onsecuritypolicyviolation
onseeked

シーク操作が終了したときに発生します。

onseeking

現在の再生位置が移動したときに発生します。

onselect

現在の選択範囲が変更されたときに発生します。

onselectionchange
onselectstart
onslotchange
onstalled

ダウンロードが停止したときに発生します。

onsubmit
onsuspend

読み込み操作が意図的に停止した場合に発生します。

ontimeupdate

現在の再生位置を示すために発生します。

ontoggle
ontouchcancel
ontouchend
ontouchmove
ontouchstart
ontransitioncancel
ontransitionend
ontransitionrun
ontransitionstart
onvolumechange

ボリュームが変更されたとき、または再生がミュートまたはミュート解除されたときに発生します。

onwaiting

ビデオ リソースの次のフレームが使用できないために再生が停止したときに発生します。

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel
parentElement

親要素を返します。

parentNode

親を返します。

pictureInPictureElement
pointerLockElement
previousSibling

前の兄弟を返します。

PROCESSING_INSTRUCTION_NODE

node は ProcessingInstruction ノードです。

styleSheets

ドキュメント内のリンクまたはスタイル オブジェクトの各インスタンスに対応するスタイル シートを表す styleSheet オブジェクトのコレクションを取得します。

textContent
TEXT_NODE

node は Text ノードです。

メソッド

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)
adoptNode<T>(T)

別のドキュメントからノードを移動し、返します。

node がドキュメントの場合は、"NotSupportedError" DOMException をスローするか、ノードがシャドウ ルートの場合は "HierarchyRequestError" DOMException をスローします。

captureEvents()
caretRangeFromPoint(number, number)
clear()
close()

出力ストリームを閉じ、送信されたデータを強制的に表示します。

createAttribute(string)

指定した名前の属性オブジェクトを作成します。

createAttributeNS(null | string, string)
createCDATASection(string)

データがデータである CDATASection ノードを返します。

createComment(string)

指定したデータを含むコメント オブジェクトを作成します。

createDocumentFragment()

新しいドキュメントを作成します。

createElement(string, ElementCreationOptions)
createElement<K>(K, ElementCreationOptions)

指定したタグの 要素のインスタンスを作成します。

createElement<K>(K, ElementCreationOptions)
createElementNS("http://www.w3.org/1999/xhtml", string)

名前空間名前空間を持つ要素を返します。 その名前空間プレフィックスは、qualifiedName または null の ":" (U+003E) より前のすべてのプレフィックスになります。 そのローカル名は、qualifiedName または qualifiedName の ":" (U+003E) の後のすべてになります。

localName が Name production と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。

次のいずれかの条件が true の場合、"NamespaceError" DOMException がスローされます。

localName が QName 運用と一致しません。 名前空間プレフィックスが null ではなく、名前空間が空の文字列です。 名前空間プレフィックスは "xml" で、名前空間は XML 名前空間ではありません。 qualifiedName または名前空間プレフィックスは "xmlns" で、名前空間は XMLNS 名前空間ではありません。 namespace は XMLNS 名前空間であり、qualifiedName も名前空間プレフィックスも "xmlns" でもありません。

オプションを指定すると、 を使用して、カスタマイズされた組み込み要素を作成できます。

createElementNS("http://www.w3.org/2000/svg", string)
createElementNS(null | string, string, ElementCreationOptions)
createElementNS(null | string, string, string | ElementCreationOptions)
createElementNS<K>("http://www.w3.org/2000/svg", K)
createEvent("AnimationEvent")
createEvent("AnimationPlaybackEvent")
createEvent("AudioProcessingEvent")
createEvent("BeforeUnloadEvent")
createEvent("BlobEvent")
createEvent("ClipboardEvent")
createEvent("CloseEvent")
createEvent("CompositionEvent")
createEvent("CustomEvent")
createEvent("DeviceMotionEvent")
createEvent("DeviceOrientationEvent")
createEvent("DragEvent")
createEvent("ErrorEvent")
createEvent("Event")
createEvent("Events")
createEvent("FocusEvent")
createEvent("FontFaceSetLoadEvent")
createEvent("FormDataEvent")
createEvent("GamepadEvent")
createEvent("HashChangeEvent")
createEvent("IDBVersionChangeEvent")
createEvent("InputEvent")
createEvent("KeyboardEvent")
createEvent("MediaEncryptedEvent")
createEvent("MediaKeyMessageEvent")
createEvent("MediaQueryListEvent")
createEvent("MediaStreamTrackEvent")
createEvent("MessageEvent")
createEvent("MouseEvent")
createEvent("MouseEvents")
createEvent("MutationEvent")
createEvent("MutationEvents")
createEvent("OfflineAudioCompletionEvent")
createEvent("PageTransitionEvent")
createEvent("PaymentMethodChangeEvent")
createEvent("PaymentRequestUpdateEvent")
createEvent("PictureInPictureEvent")
createEvent("PointerEvent")
createEvent("PopStateEvent")
createEvent("ProgressEvent")
createEvent("PromiseRejectionEvent")
createEvent("RTCDataChannelEvent")
createEvent("RTCDTMFToneChangeEvent")
createEvent("RTCErrorEvent")
createEvent("RTCPeerConnectionIceErrorEvent")
createEvent("RTCPeerConnectionIceEvent")
createEvent("RTCTrackEvent")
createEvent("SecurityPolicyViolationEvent")
createEvent("SpeechSynthesisErrorEvent")
createEvent("SpeechSynthesisEvent")
createEvent("StorageEvent")
createEvent("SubmitEvent")
createEvent("TouchEvent")
createEvent("TrackEvent")
createEvent("TransitionEvent")
createEvent("UIEvent")
createEvent("UIEvents")
createEvent("WebGLContextEvent")
createEvent("WheelEvent")
createEvent(string)
createNodeIterator(Node, number, null | NodeFilter)

ドキュメント内のノードまたは要素のフィルター処理されたリストを走査するために使用できる NodeIterator オブジェクトを作成します。

createProcessingInstruction(string, string)

ターゲットがターゲットで、データがデータである ProcessingInstruction ノードを返します。 ターゲットが Name production と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。 データに "?>" が含まれている場合"InvalidCharacterError" DOMException がスローされます。

createRange()

文書の先頭に両方の境界ポイントが配置されている空の範囲オブジェクトを返します。

createTextNode(string)

指定した値からテキスト文字列を作成します。

createTreeWalker(Node, number, null | NodeFilter)

ドキュメント内のノードまたは要素のフィルター処理されたリストを走査するために使用できる TreeWalker オブジェクトを作成します。

execCommand(string, boolean, string)

現在の文書、現在の選択範囲、または指定された範囲に対してコマンドを実行します。

exitFullscreen()

ドキュメントの全画面表示要素が全画面表示されないようにし、完了したら promise を解決します。

exitPictureInPicture()
exitPointerLock()
getElementById(string)

ID 属性の指定した値を持つ最初のオブジェクトへの参照を返します。

getElementsByClassName(string)

classNames によって指定されたすべてのクラスを持つ、メソッドが呼び出されたオブジェクト (ドキュメントまたは要素) 内の要素の HTMLCollection を返します。 classNames 引数は、クラスのスペース区切りのリストとして解釈されます。

getElementsByName(string)

NAME 属性または ID 属性の値に基づいてオブジェクトのコレクションを取得します。

getElementsByTagName(string)
getElementsByTagName<K>(K)

指定した要素名に基づいてオブジェクトのコレクションを取得します。

getElementsByTagName<K>(K)
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)

namespace と localName が "*" の場合、すべての子孫要素の HTMLCollection が返されます。

名前空間のみが "*" の場合、ローカル名が localName であるすべての子孫要素の HTMLCollection が返されます。

localName のみが "*" の場合は、名前空間が名前空間であるすべての子孫要素の HTMLCollection が返されます。

それ以外の場合は、名前空間が名前空間で、ローカル名が localName であるすべての子孫要素の HTMLCollection を返します。

getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
getElementsByTagNameNS(null | string, string)
getSelection()

Web ページを表示するオブジェクトに読み込まれるドキュメントの現在の選択範囲を表す オブジェクトを返します。

hasFocus()

オブジェクトに現在フォーカスがあるかどうかを示す値を取得します。

hasStorageAccess()
importNode<T>(T, boolean)

ノードのコピーを返します。 deep が true の場合、コピーにはノードの子孫も含まれます。

node がドキュメントまたはシャドウ ルートの場合は、"NotSupportedError" DOMException をスローします。

open(string | URL, string, string)
open(string, string)

新しいウィンドウを開き、指定された URL で指定されたドキュメントを読み込みます。 また、url パラメーターと name パラメーターを使用して write メソッドと writeln メソッドの出力を収集する新しいウィンドウを開きます。

queryCommandEnabled(string)

ドキュメントの現在の状態を指定すると、execCommand を使用して指定したコマンドを正常に実行できるかどうかを示すブール値を返します。

queryCommandIndeterm(string)

指定したコマンドが不確定状態であるかどうかを示すブール値を返します。

queryCommandState(string)

コマンドの現在の状態を示すブール値を返します。

queryCommandSupported(string)

現在の範囲で現在のコマンドがサポートされているかどうかを示すブール値を返します。

queryCommandValue(string)

指定したコマンドの文書、範囲、または現在の選択範囲の現在の値を返します。

releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)
requestStorageAccess()
write(string[])

指定したウィンドウ内のドキュメントに 1 つ以上の HTML 式を書き込みます。

writeln(string[])

1 つ以上の HTML 式を書き込み、その後にキャリッジ リターンを指定したウィンドウ内のドキュメントに書き込みます。

継承されたメソッド

append((string | Node)[])

ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等の Text ノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

appendChild<T>(T)
cloneNode(boolean)

ノードのコピーを返します。 deep が true の場合、コピーにはノードの子孫も含まれます。

compareDocumentPosition(Node)

ノードに対する他の相対位置を示すビットマスクを返します。

contains(null | Node)

other がノードの包括的な子孫である場合は true、それ以外の場合は false を返します。

createExpression(string, null | XPathNSResolver)
createNSResolver(Node)
dispatchEvent(Event)

合成イベント イベントをターゲットにディスパッチし、イベントの取り消し可能な属性値が false であるか、preventDefault() メソッドが呼び出されなかった場合は true を返し、それ以外の場合は false を返します。

elementFromPoint(number, number)

指定した x 座標と指定した y 座標の要素を返します。

elementsFromPoint(number, number)
evaluate(string, Node, null | XPathNSResolver, number, null | XPathResult)
getAnimations()
getRootNode(GetRootNodeOptions)

ノードのルートを返します。

hasChildNodes()

ノードに子があるかどうかを返します。

insertBefore<T>(T, null | Node)
isDefaultNamespace(null | string)
isEqualNode(null | Node)

node と otherNode のプロパティが同じかどうかを返します。

isSameNode(null | Node)
lookupNamespaceURI(null | string)
lookupPrefix(null | string)
normalize()

空の排他テキスト ノードを削除し、残りの連続する排他テキスト ノードのデータをノードの最初のノードに連結します。

prepend((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

querySelector<E>(string)
querySelector<K>(K)

セレクターに一致するノードの子孫である最初の要素を返します。

querySelector<K>(K)
querySelectorAll<E>(string)
querySelectorAll<K>(K)

セレクターに一致するノードのすべての要素の子孫を返します。

querySelectorAll<K>(K)
removeChild<T>(T)
replaceChild<T>(Node, T)
replaceChildren((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードのすべての子をノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

プロパティの詳細

alinkColor

警告

この API は非推奨になりました。

文書内のすべてのアクティブなリンクの色を設定または取得します。

alinkColor: string

プロパティ値

string

all

警告

この API は非推奨になりました。

オブジェクトに含まれる要素のコレクションへの参照を返します。

all: HTMLAllCollection

プロパティ値

HTMLAllCollection

anchors

警告

この API は非推奨になりました。

名前や id プロパティを持つすべてのオブジェクトのコレクションを取得します。 このコレクション内のオブジェクトは HTML ソース順です。

anchors: HTMLCollectionOf<HTMLAnchorElement>

プロパティ値

HTMLCollectionOf<HTMLAnchorElement>

applets

警告

この API は非推奨になりました。

ドキュメント内のすべてのアプレット オブジェクトのコレクションを取得します。

applets: HTMLCollection

プロパティ値

HTMLCollection

bgColor

警告

この API は非推奨になりました。

非推奨になりました。 オブジェクトの背景の色を示す値を設定または取得します。

bgColor: string

プロパティ値

string

body

ドキュメント本文の先頭と末尾を指定します。

body: HTMLElement

プロパティ値

HTMLElement

characterSet

ドキュメントのエンコードを返します。

characterSet: string

プロパティ値

string

charset

警告

この API は非推奨になりました。

This is a legacy alias of characterSet.

オブジェクトのエンコードに使用される文字セットを取得または設定します。

charset: string

プロパティ値

string

compatMode

オブジェクトに対して標準準拠モードがオンになっているかどうかを示す値を取得します。

compatMode: string

プロパティ値

string

contentType

ドキュメントのコンテンツ タイプを返します。

contentType: string

プロパティ値

string

ドキュメントに適用される HTTP Cookie を返します。 このリソースに Cookie または Cookie を適用できない場合は、空の文字列が返されます。

を設定して、要素の HTTP Cookie のセットに新しい Cookie を追加できます。

コンテンツが一意の配信元 (サンドボックス属性を持つ iframe など) にサンドボックス化されている場合は、取得と設定時に "SecurityError" DOMException がスローされます。

cookie: string

プロパティ値

string

currentScript

要素がクラシック スクリプトを表す限り、現在実行中の script 要素または SVG スクリプト要素を返します。 再入可能なスクリプト実行の場合、 は、まだ実行を完了していないものの中で、最後に実行を開始したものを返します。

Document が現在スクリプトまたは SVG スクリプト要素を実行していない場合 (実行中のスクリプトがイベント ハンドラーまたはタイムアウトであるため)、または現在実行中のスクリプトまたは SVG スクリプト要素がモジュール スクリプトを表している場合は null を返します。

currentScript: null | HTMLOrSVGScriptElement

プロパティ値

null | HTMLOrSVGScriptElement

defaultView

作業中の文書の Window オブジェクトを返します。

defaultView: null | (Window & typeof globalThis)

プロパティ値

null | (Window & typeof globalThis)

designMode

ドキュメントを編集できるかどうかを示す値を設定または取得します。

designMode: string

プロパティ値

string

dir

オブジェクトの読み取り順序を示す値を設定または取得します。

dir: string

プロパティ値

string

doctype

現在のドキュメントに関連付けられているドキュメントの種類の宣言を表す オブジェクトを取得します。

doctype: null | DocumentType

プロパティ値

null | DocumentType

documentElement

ドキュメントのルート ノードへの参照を取得します。

documentElement: HTMLElement

プロパティ値

HTMLElement

documentURI

ドキュメントの URL を返します。

documentURI: string

プロパティ値

string

domain

警告

この API は非推奨になりました。

ドキュメントのセキュリティ ドメインを設定または取得します。

domain: string

プロパティ値

string

embeds

ドキュメント内のすべての埋め込みオブジェクトのコレクションを取得します。

embeds: HTMLCollectionOf<HTMLEmbedElement>

プロパティ値

HTMLCollectionOf<HTMLEmbedElement>

fgColor

警告

この API は非推奨になりました。

文書の前景 (テキスト) の色を設定または取得します。

fgColor: string

プロパティ値

string

forms

ドキュメント内のすべてのフォーム オブジェクトのコレクションをソース順に取得します。

forms: HTMLCollectionOf<HTMLFormElement>

プロパティ値

HTMLCollectionOf<HTMLFormElement>

fullscreen

警告

この API は非推奨になりました。

fullscreen: boolean

プロパティ値

boolean

fullscreenEnabled

文書に要素を全画面表示する機能があり、全画面表示がサポートされている場合は true、それ以外の場合は false を返します。

fullscreenEnabled: boolean

プロパティ値

boolean

head

head 要素を返します。

head: HTMLHeadElement

プロパティ値

HTMLHeadElement

hidden

hidden: boolean

プロパティ値

boolean

images

ドキュメント内の img オブジェクトのコレクションをソース順に取得します。

images: HTMLCollectionOf<HTMLImageElement>

プロパティ値

HTMLCollectionOf<HTMLImageElement>

implementation

現在のドキュメントの実装オブジェクトを取得します。

implementation: DOMImplementation

プロパティ値

DOMImplementation

inputEncoding

警告

この API は非推奨になりました。

This is a legacy alias of characterSet.

ドキュメント オブジェクトに読み込まれる Web ページの作成に使用される文字エンコードを返します。

inputEncoding: string

プロパティ値

string

lastModified

ページが最後に変更された日付を取得します (ページに指定されている場合)。

lastModified: string

プロパティ値

string

linkColor

警告

この API は非推奨になりました。

ドキュメント リンクの色を設定または取得します。

linkColor: string

プロパティ値

string

href プロパティとドキュメント内のすべての領域オブジェクトを指定するすべてのオブジェクトのコレクションを取得します。

links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

プロパティ値

HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

location

現在の URL に関する情報が含まれます。

Location location

プロパティ値

Location

mozCancelFullScreen

mozCancelFullScreen: any

プロパティ値

any

msExitFullscreen

msExitFullscreen: any

プロパティ値

any

onfullscreenchange

onfullscreenchange: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

onfullscreenerror

onfullscreenerror: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

onpointerlockchange

onpointerlockchange: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

onpointerlockerror

onpointerlockerror: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

onreadystatechange

オブジェクトの状態が変更されたときに発生します。

onreadystatechange: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

onvisibilitychange

onvisibilitychange: null | (this: Document, ev: Event) => any

プロパティ値

null | (this: Document, ev: Event) => any

ownerDocument

ownerDocument: null

プロパティ値

null

pictureInPictureEnabled

pictureInPictureEnabled: boolean

プロパティ値

boolean

plugins

Document 内の埋め込み要素の HTMLCollection を返します。

plugins: HTMLCollectionOf<HTMLEmbedElement>

プロパティ値

HTMLCollectionOf<HTMLEmbedElement>

readyState

オブジェクトの現在の状態を示す値を取得します。

readyState: DocumentReadyState

プロパティ値

DocumentReadyState

referrer

ユーザーを現在のページに参照した場所の URL を取得します。

referrer: string

プロパティ値

string

rootElement

警告

この API は非推奨になりました。

rootElement: null | SVGSVGElement

プロパティ値

null | SVGSVGElement

scripts

ドキュメント内のすべてのスクリプト オブジェクトのコレクションを取得します。

scripts: HTMLCollectionOf<HTMLScriptElement>

プロパティ値

HTMLCollectionOf<HTMLScriptElement>

scrollingElement

scrollingElement: null | Element

プロパティ値

null | Element

timeline

timeline: DocumentTimeline

プロパティ値

DocumentTimeline

title

ドキュメントのタイトルを格納します。

title: string

プロパティ値

string

URL

現在のドキュメントの URL を設定または取得します。

URL: string

プロパティ値

string

visibilityState

visibilityState: DocumentVisibilityState

プロパティ値

DocumentVisibilityState

vlinkColor

警告

この API は非推奨になりました。

ユーザーがアクセスしたリンクの色を設定または取得します。

vlinkColor: string

プロパティ値

string

webkitExitFullscreen

webkitExitFullscreen: void

プロパティ値

void

継承されたプロパティの詳細

activeElement

キー イベントのルーティング先またはルーティング先となるドキュメント内の最も深い要素を返します。 これは、大まかに言えば、ドキュメント内のフォーカスされた要素です。

この API の目的上、子参照コンテキストにフォーカスがある場合、そのコンテナーは親参照コンテキストにフォーカスされます。 たとえば、ユーザーが iframe 内のテキスト コントロールにフォーカスを移動した場合、iframe は iframe のノード ドキュメント内の activeElement API によって返される要素です。

同様に、フォーカスされた要素が documentOrShadowRoot とは異なるノード ツリーにある場合、documentOrShadowRoot がフォーカスされた要素のシャドウを含む包括的な先祖である場合、返される要素は documentOrShadowRoot と同じノード ツリー内にあるホストになり、そうでない場合は null になります。

activeElement: null | Element

プロパティ値

null | Element

継承元 DocumentOrShadowRoot.activeElement

adoptedStyleSheets

adoptedStyleSheets: CSSStyleSheet[]

プロパティ値

CSSStyleSheet[]

継承元 DocumentOrShadowRoot.adoptedStyleSheets

ATTRIBUTE_NODE

ATTRIBUTE_NODE: number

プロパティ値

number

継承元 Node.ATTRIBUTE_NODE

baseURI

ノードのノード ドキュメントのドキュメントベース URL を返します。

baseURI: string

プロパティ値

string

継承元 Node.baseURI

CDATA_SECTION_NODE

node は CDATASection ノードです。

CDATA_SECTION_NODE: number

プロパティ値

number

継承元 Node.CDATA_SECTION_NODE

childElementCount

childElementCount: number

プロパティ値

number

継承元 ParentNode.childElementCount

childNodes

子を返します。

childNodes: NodeListOf<ChildNode>

プロパティ値

NodeListOf<ChildNode>

継承元 Node.childNodes

children

子要素を返します。

children: HTMLCollection

プロパティ値

HTMLCollection

継承元 ParentNode.children

COMMENT_NODE

node は Comment ノードです。

COMMENT_NODE: number

プロパティ値

number

継承元 Node.COMMENT_NODE

DOCUMENT_FRAGMENT_NODE

node は DocumentFragment ノードです。

DOCUMENT_FRAGMENT_NODE: number

プロパティ値

number

継承元 Node.DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

ノードはドキュメントです。

DOCUMENT_NODE: number

プロパティ値

number

継承元 Node.DOCUMENT_NODE

DOCUMENT_POSITION_CONTAINED_BY

other がノードの子孫である場合に設定します。

DOCUMENT_POSITION_CONTAINED_BY: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_CONTAINS

other がノードの先祖である場合に設定します。

DOCUMENT_POSITION_CONTAINS: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_DISCONNECTED

ノードと他のノードが同じツリーにない場合に設定します。

DOCUMENT_POSITION_DISCONNECTED: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_FOLLOWING

other がノードをフォローしている場合に設定します。

DOCUMENT_POSITION_FOLLOWING: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_PRECEDING

other がノードの前にある場合に設定します。

DOCUMENT_POSITION_PRECEDING: number

プロパティ値

number

継承元 Node.DOCUMENT_POSITION_PRECEDING

DOCUMENT_TYPE_NODE

node は doctype です。

DOCUMENT_TYPE_NODE: number

プロパティ値

number

継承元 Node.DOCUMENT_TYPE_NODE

ELEMENT_NODE

node は要素です。

ELEMENT_NODE: number

プロパティ値

number

継承元 Node.ELEMENT_NODE

ENTITY_NODE

ENTITY_NODE: number

プロパティ値

number

継承元 Node.ENTITY_NODE

ENTITY_REFERENCE_NODE

ENTITY_REFERENCE_NODE: number

プロパティ値

number

継承元 Node.ENTITY_REFERENCE_NODE

firstChild

最初の子を返します。

firstChild: null | ChildNode

プロパティ値

null | ChildNode

継承元 Node.firstChild

firstElementChild

要素である最初の子を返し、それ以外の場合は null を返します。

firstElementChild: null | Element

プロパティ値

null | Element

継承元 ParentNode.firstElementChild

fonts

fonts: FontFaceSet

プロパティ値

FontFaceSet

継承元 FontFaceSource.fonts

fullscreenElement

ドキュメントの全画面表示要素を返します。

fullscreenElement: null | Element

プロパティ値

null | Element

継承元 DocumentOrShadowRoot.fullscreenElement

isConnected

ノードが接続されている場合は true、それ以外の場合は false を返します。

isConnected: boolean

プロパティ値

boolean

継承元 Node.isConnected

lastChild

最後の子を返します。

lastChild: null | ChildNode

プロパティ値

null | ChildNode

継承元 Node.lastChild

lastElementChild

要素である最後の子を返し、それ以外の場合は null を返します。

lastElementChild: null | Element

プロパティ値

null | Element

継承元 ParentNode.lastElementChild

nextSibling

次の兄弟を返します。

nextSibling: null | ChildNode

プロパティ値

null | ChildNode

継承元 Node.nextSibling

nodeName

ノードの種類に適した文字列を返します。

nodeName: string

プロパティ値

string

継承元 Node.nodeName

nodeType

ノードの種類を返します。

nodeType: number

プロパティ値

number

継承元 Node.nodeType

nodeValue

nodeValue: null | string

プロパティ値

null | string

継承元 Node.nodeValue

NOTATION_NODE

NOTATION_NODE: number

プロパティ値

number

継承元 Node.NOTATION_NODE

onabort

ユーザーがダウンロードを中止すると発生します。

onabort: null | (this: GlobalEventHandlers, ev: UIEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: UIEvent) => any

継承元 GlobalEventHandlers.onabort

onanimationcancel

onanimationcancel: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

継承元 GlobalEventHandlers.onanimationcancel

onanimationend

onanimationend: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

継承元 GlobalEventHandlers.onanimationend

onanimationiteration

onanimationiteration: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

継承元 GlobalEventHandlers.onanimationiteration

onanimationstart

onanimationstart: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: AnimationEvent) => any

継承元 GlobalEventHandlers.onanimationstart

onauxclick

onauxclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onauxclick

onbeforeinput

onbeforeinput: null | (this: GlobalEventHandlers, ev: InputEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: InputEvent) => any

継承元 GlobalEventHandlers.onbeforeinput

onblur

オブジェクトが入力フォーカスを失うと発生します。

onblur: null | (this: GlobalEventHandlers, ev: FocusEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: FocusEvent) => any

継承元 GlobalEventHandlers.onblur

oncancel

oncancel: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oncancel

oncanplay

再生が可能な場合に発生しますが、さらにバッファリングが必要になります。

oncanplay: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oncanplay

oncanplaythrough

oncanplaythrough: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oncanplaythrough

onchange

オブジェクトまたは選択範囲の内容が変更されたときに発生します。

onchange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onchange

onclick

ユーザーがオブジェクトのマウスの左ボタンをクリックしたときに発生します

onclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onclick

onclose

onclose: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onclose

oncontextmenu

ユーザーがクライアント領域でマウスの右ボタンをクリックし、コンテキスト メニューを開くと発生します。

oncontextmenu: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.oncontextmenu

oncopy

oncopy: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

プロパティ値

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

継承元 DocumentAndElementEventHandlers.oncopy

oncuechange

oncuechange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oncuechange

oncut

oncut: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

プロパティ値

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

継承元 DocumentAndElementEventHandlers.oncut

ondblclick

ユーザーがオブジェクトをダブルクリックすると発生します。

ondblclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.ondblclick

ondrag

ドラッグ操作中にソース オブジェクトに対して継続的に起動します。

ondrag: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondrag

ondragend

ユーザーがドラッグ操作の終了時にマウスを離すと、ソース オブジェクトに対して起動します。

ondragend: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondragend

ondragenter

ユーザーがオブジェクトを有効なドロップ ターゲットにドラッグすると、ターゲット要素に対して発生します。

ondragenter: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondragenter

ondragleave

ユーザーがドラッグ操作中に有効なドロップ ターゲットからマウスを移動すると、ターゲット オブジェクトに対して発生します。

ondragleave: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondragleave

ondragover

ユーザーが有効なドロップ ターゲットの上にオブジェクトをドラッグしている間、ターゲット要素に対して継続的に起動します。

ondragover: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondragover

ondragstart

ユーザーがテキスト選択または選択したオブジェクトのドラッグを開始すると、ソース オブジェクトに対して発生します。

ondragstart: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondragstart

ondrop

ondrop: null | (this: GlobalEventHandlers, ev: DragEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: DragEvent) => any

継承元 GlobalEventHandlers.ondrop

ondurationchange

duration 属性が更新されたときに発生します。

ondurationchange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.ondurationchange

onemptied

メディア要素が初期状態にリセットされるときに発生します。

onemptied: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onemptied

onended

再生の終了に達したときに発生します。

onended: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onended

onerror

オブジェクトの読み込み中にエラーが発生すると発生します。

onerror: OnErrorEventHandler

プロパティ値

OnErrorEventHandler

継承元 GlobalEventHandlers.onerror

onfocus

オブジェクトがフォーカスを受け取ると発生します。

onfocus: null | (this: GlobalEventHandlers, ev: FocusEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: FocusEvent) => any

継承元 GlobalEventHandlers.onfocus

onformdata

onformdata: null | (this: GlobalEventHandlers, ev: FormDataEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: FormDataEvent) => any

継承元 GlobalEventHandlers.onformdata

ongotpointercapture

ongotpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.ongotpointercapture

oninput

oninput: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oninput

oninvalid

oninvalid: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.oninvalid

onkeydown

ユーザーがキーを押すと発生します。

onkeydown: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

継承元 GlobalEventHandlers.onkeydown

onkeypress

警告

この API は非推奨になりました。

ユーザーが英数字キーを押すと発生します。

onkeypress: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

継承元 GlobalEventHandlers.onkeypress

onkeyup

ユーザーがキーを離したときに発生します。

onkeyup: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any

継承元 GlobalEventHandlers.onkeyup

onload

ブラウザーがオブジェクトを読み込んだ直後に起動します。

onload: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onload

onloadeddata

メディア データが現在の再生位置に読み込まれるときに発生します。

onloadeddata: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onloadeddata

onloadedmetadata

メディアの期間とディメンションが決定されたときに発生します。

onloadedmetadata: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onloadedmetadata

onloadstart

Internet Explorer がメディア データの検索を開始したときに発生します。

onloadstart: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onloadstart

onlostpointercapture

onlostpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onlostpointercapture

onmousedown

ユーザーがいずれかのマウス ボタンでオブジェクトをクリックすると発生します。

onmousedown: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmousedown

onmouseenter

onmouseenter: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmouseenter

onmouseleave

onmouseleave: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmouseleave

onmousemove

ユーザーがオブジェクトの上にマウスを移動すると発生します。

onmousemove: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmousemove

onmouseout

ユーザーがマウス ポインターをオブジェクトの境界の外に移動したときに発生します。

onmouseout: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmouseout

onmouseover

ユーザーがマウス ポインターをオブジェクトに移動すると発生します。

onmouseover: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmouseover

onmouseup

マウスがオブジェクトの上にあるときに、ユーザーがマウス ボタンを離したときに発生します。

onmouseup: null | (this: GlobalEventHandlers, ev: MouseEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: MouseEvent) => any

継承元 GlobalEventHandlers.onmouseup

onpaste

onpaste: null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

プロパティ値

null | (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any

継承元 DocumentAndElementEventHandlers.onpaste

onpause

再生が一時停止したときに発生します。

onpause: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onpause

onplay

再生メソッドが要求されたときに発生します。

onplay: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onplay

onplaying

オーディオまたはビデオの再生が開始されたときに発生します。

onplaying: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onplaying

onpointercancel

onpointercancel: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointercancel

onpointerdown

onpointerdown: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerdown

onpointerenter

onpointerenter: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerenter

onpointerleave

onpointerleave: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerleave

onpointermove

onpointermove: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointermove

onpointerout

onpointerout: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerout

onpointerover

onpointerover: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerover

onpointerup

onpointerup: null | (this: GlobalEventHandlers, ev: PointerEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: PointerEvent) => any

継承元 GlobalEventHandlers.onpointerup

onprogress

メディア データのダウンロード中の進行状況を示すために発生します。

onprogress: null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any

継承元 GlobalEventHandlers.onprogress

onratechange

再生レートが増減したときに発生します。

onratechange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onratechange

onreset

ユーザーがフォームをリセットしたときに発生します。

onreset: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onreset

onresize

onresize: null | (this: GlobalEventHandlers, ev: UIEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: UIEvent) => any

継承元 GlobalEventHandlers.onresize

onscroll

ユーザーがオブジェクトのスクロール バーのスクロール ボックスの位置を変更したときに発生します。

onscroll: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onscroll

onsecuritypolicyviolation

onsecuritypolicyviolation: null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any

継承元 GlobalEventHandlers.onsecuritypolicyviolation

onseeked

シーク操作が終了したときに発生します。

onseeked: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onseeked

onseeking

現在の再生位置が移動したときに発生します。

onseeking: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onseeking

onselect

現在の選択範囲が変更されたときに発生します。

onselect: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onselect

onselectionchange

onselectionchange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onselectionchange

onselectstart

onselectstart: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onselectstart

onslotchange

onslotchange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onslotchange

onstalled

ダウンロードが停止したときに発生します。

onstalled: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onstalled

onsubmit

onsubmit: null | (this: GlobalEventHandlers, ev: SubmitEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: SubmitEvent) => any

継承元 GlobalEventHandlers.onsubmit

onsuspend

読み込み操作が意図的に停止した場合に発生します。

onsuspend: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onsuspend

ontimeupdate

現在の再生位置を示すために発生します。

ontimeupdate: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.ontimeupdate

ontoggle

ontoggle: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.ontoggle

ontouchcancel

ontouchcancel?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

継承元 GlobalEventHandlers.ontouchcancel

ontouchend

ontouchend?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

継承元 GlobalEventHandlers.ontouchend

ontouchmove

ontouchmove?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

継承元 GlobalEventHandlers.ontouchmove

ontouchstart

ontouchstart?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TouchEvent) => any

継承元 GlobalEventHandlers.ontouchstart

ontransitioncancel

ontransitioncancel: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

継承元 GlobalEventHandlers.ontransitioncancel

ontransitionend

ontransitionend: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

継承元 GlobalEventHandlers.ontransitionend

ontransitionrun

ontransitionrun: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

継承元 GlobalEventHandlers.ontransitionrun

ontransitionstart

ontransitionstart: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: TransitionEvent) => any

継承元 GlobalEventHandlers.ontransitionstart

onvolumechange

ボリュームが変更されたとき、または再生がミュートまたはミュート解除されたときに発生します。

onvolumechange: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onvolumechange

onwaiting

ビデオ リソースの次のフレームが使用できないために再生が停止したときに発生します。

onwaiting: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onwaiting

onwebkitanimationend

警告

この API は非推奨になりました。

This is a legacy alias of onanimationend.

onwebkitanimationend: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onwebkitanimationend

onwebkitanimationiteration

警告

この API は非推奨になりました。

This is a legacy alias of onanimationiteration.

onwebkitanimationiteration: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onwebkitanimationiteration

onwebkitanimationstart

警告

この API は非推奨になりました。

This is a legacy alias of onanimationstart.

onwebkitanimationstart: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onwebkitanimationstart

onwebkittransitionend

警告

この API は非推奨になりました。

This is a legacy alias of ontransitionend.

onwebkittransitionend: null | (this: GlobalEventHandlers, ev: Event) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: Event) => any

継承元 GlobalEventHandlers.onwebkittransitionend

onwheel

onwheel: null | (this: GlobalEventHandlers, ev: WheelEvent) => any

プロパティ値

null | (this: GlobalEventHandlers, ev: WheelEvent) => any

継承元 GlobalEventHandlers.onwheel

parentElement

親要素を返します。

parentElement: null | HTMLElement

プロパティ値

null | HTMLElement

継承元 Node.parentElement

parentNode

親を返します。

parentNode: null | ParentNode

プロパティ値

null | ParentNode

継承元 Node.parentNode

pictureInPictureElement

pictureInPictureElement: null | Element

プロパティ値

null | Element

継承元 DocumentOrShadowRoot.pictureInPictureElement

pointerLockElement

pointerLockElement: null | Element

プロパティ値

null | Element

継承元 DocumentOrShadowRoot.pointerLockElement

previousSibling

前の兄弟を返します。

previousSibling: null | ChildNode

プロパティ値

null | ChildNode

継承元 Node.previousSibling

PROCESSING_INSTRUCTION_NODE

node は ProcessingInstruction ノードです。

PROCESSING_INSTRUCTION_NODE: number

プロパティ値

number

継承元 Node.PROCESSING_INSTRUCTION_NODE

styleSheets

ドキュメント内のリンクまたはスタイル オブジェクトの各インスタンスに対応するスタイル シートを表す styleSheet オブジェクトのコレクションを取得します。

styleSheets: StyleSheetList

プロパティ値

StyleSheetList

継承元 DocumentOrShadowRoot.styleSheets

textContent

textContent: null | string

プロパティ値

null | string

継承元 Node.textContent

TEXT_NODE

node は Text ノードです。

TEXT_NODE: number

プロパティ値

number

継承元 Node.TEXT_NODE

メソッドの詳細

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)

function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)

パラメーター

type

string

listener

EventListenerOrEventListenerObject

options

boolean | AddEventListenerOptions

addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)

function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)

パラメーター

type

K

listener

(this: Document, ev: DocumentEventMap[K]) => any

options

boolean | AddEventListenerOptions

adoptNode<T>(T)

別のドキュメントからノードを移動し、返します。

node がドキュメントの場合は、"NotSupportedError" DOMException をスローするか、ノードがシャドウ ルートの場合は "HierarchyRequestError" DOMException をスローします。

function adoptNode<T>(node: T): T

パラメーター

node

T

戻り値

T

captureEvents()

警告

この API は非推奨になりました。

function captureEvents()

caretRangeFromPoint(number, number)

警告

この API は非推奨になりました。

function caretRangeFromPoint(x: number, y: number): null | Range

パラメーター

x

number

y

number

戻り値

null | Range

clear()

警告

この API は非推奨になりました。

function clear()

close()

出力ストリームを閉じ、送信されたデータを強制的に表示します。

function close()

createAttribute(string)

指定した名前の属性オブジェクトを作成します。

function createAttribute(localName: string): Attr

パラメーター

localName

string

戻り値

Attr

createAttributeNS(null | string, string)

function createAttributeNS(namespace: null | string, qualifiedName: string): Attr

パラメーター

namespace

null | string

qualifiedName

string

戻り値

Attr

createCDATASection(string)

データがデータである CDATASection ノードを返します。

function createCDATASection(data: string): CDATASection

パラメーター

data

string

戻り値

CDATASection

createComment(string)

指定したデータを含むコメント オブジェクトを作成します。

function createComment(data: string): Comment

パラメーター

data

string

コメント オブジェクトのデータを設定します。

戻り値

Comment

createDocumentFragment()

新しいドキュメントを作成します。

function createDocumentFragment(): DocumentFragment

戻り値

DocumentFragment

createElement(string, ElementCreationOptions)

function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement

パラメーター

tagName

string

options

ElementCreationOptions

戻り値

HTMLElement

createElement<K>(K, ElementCreationOptions)

指定したタグの 要素のインスタンスを作成します。

function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]

パラメーター

tagName

K

要素の名前。

options

ElementCreationOptions

戻り値

HTMLElementTagNameMap[K]

createElement<K>(K, ElementCreationOptions)

警告

この API は非推奨になりました。

function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]

パラメーター

tagName

K

options

ElementCreationOptions

戻り値

HTMLElementDeprecatedTagNameMap[K]

createElementNS("http://www.w3.org/1999/xhtml", string)

名前空間名前空間を持つ要素を返します。 その名前空間プレフィックスは、qualifiedName または null の ":" (U+003E) より前のすべてのプレフィックスになります。 そのローカル名は、qualifiedName または qualifiedName の ":" (U+003E) の後のすべてになります。

localName が Name production と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。

次のいずれかの条件が true の場合、"NamespaceError" DOMException がスローされます。

localName が QName 運用と一致しません。 名前空間プレフィックスが null ではなく、名前空間が空の文字列です。 名前空間プレフィックスは "xml" で、名前空間は XML 名前空間ではありません。 qualifiedName または名前空間プレフィックスは "xmlns" で、名前空間は XMLNS 名前空間ではありません。 namespace は XMLNS 名前空間であり、qualifiedName も名前空間プレフィックスも "xmlns" でもありません。

オプションを指定すると、 を使用して、カスタマイズされた組み込み要素を作成できます。

function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement

パラメーター

namespaceURI

"http://www.w3.org/1999/xhtml"

qualifiedName

string

戻り値

HTMLElement

createElementNS("http://www.w3.org/2000/svg", string)

function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement

パラメーター

namespaceURI

"http://www.w3.org/2000/svg"

qualifiedName

string

戻り値

SVGElement

createElementNS(null | string, string, ElementCreationOptions)

function createElementNS(namespaceURI: null | string, qualifiedName: string, options?: ElementCreationOptions): Element

パラメーター

namespaceURI

null | string

qualifiedName

string

options

ElementCreationOptions

戻り値

Element

createElementNS(null | string, string, string | ElementCreationOptions)

function createElementNS(namespace: null | string, qualifiedName: string, options?: string | ElementCreationOptions): Element

パラメーター

namespace

null | string

qualifiedName

string

options

string | ElementCreationOptions

戻り値

Element

createElementNS<K>("http://www.w3.org/2000/svg", K)

function createElementNS<K>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]

パラメーター

namespaceURI

"http://www.w3.org/2000/svg"

qualifiedName

K

戻り値

SVGElementTagNameMap[K]

createEvent("AnimationEvent")

function createEvent(eventInterface: "AnimationEvent"): AnimationEvent

パラメーター

eventInterface

"AnimationEvent"

戻り値

AnimationEvent

createEvent("AnimationPlaybackEvent")

function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent

パラメーター

eventInterface

"AnimationPlaybackEvent"

戻り値

AnimationPlaybackEvent

createEvent("AudioProcessingEvent")

function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent

パラメーター

eventInterface

"AudioProcessingEvent"

戻り値

AudioProcessingEvent

createEvent("BeforeUnloadEvent")

function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent

パラメーター

eventInterface

"BeforeUnloadEvent"

戻り値

BeforeUnloadEvent

createEvent("BlobEvent")

function createEvent(eventInterface: "BlobEvent"): BlobEvent

パラメーター

eventInterface

"BlobEvent"

戻り値

BlobEvent

createEvent("ClipboardEvent")

function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent

パラメーター

eventInterface

"ClipboardEvent"

戻り値

ClipboardEvent

createEvent("CloseEvent")

function createEvent(eventInterface: "CloseEvent"): CloseEvent

パラメーター

eventInterface

"CloseEvent"

戻り値

CloseEvent

createEvent("CompositionEvent")

function createEvent(eventInterface: "CompositionEvent"): CompositionEvent

パラメーター

eventInterface

"CompositionEvent"

戻り値

CompositionEvent

createEvent("CustomEvent")

function createEvent(eventInterface: "CustomEvent"): CustomEvent<any>

パラメーター

eventInterface

"CustomEvent"

戻り値

CustomEvent<any>

createEvent("DeviceMotionEvent")

function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent

パラメーター

eventInterface

"DeviceMotionEvent"

戻り値

DeviceMotionEvent

createEvent("DeviceOrientationEvent")

function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent

パラメーター

eventInterface

"DeviceOrientationEvent"

戻り値

DeviceOrientationEvent

createEvent("DragEvent")

function createEvent(eventInterface: "DragEvent"): DragEvent

パラメーター

eventInterface

"DragEvent"

戻り値

DragEvent

createEvent("ErrorEvent")

function createEvent(eventInterface: "ErrorEvent"): ErrorEvent

パラメーター

eventInterface

"ErrorEvent"

戻り値

ErrorEvent

createEvent("Event")

function createEvent(eventInterface: "Event"): Event

パラメーター

eventInterface

"Event"

戻り値

Event

createEvent("Events")

function createEvent(eventInterface: "Events"): Event

パラメーター

eventInterface

"Events"

戻り値

Event

createEvent("FocusEvent")

function createEvent(eventInterface: "FocusEvent"): FocusEvent

パラメーター

eventInterface

"FocusEvent"

戻り値

FocusEvent

createEvent("FontFaceSetLoadEvent")

function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent

パラメーター

eventInterface

"FontFaceSetLoadEvent"

戻り値

FontFaceSetLoadEvent

createEvent("FormDataEvent")

function createEvent(eventInterface: "FormDataEvent"): FormDataEvent

パラメーター

eventInterface

"FormDataEvent"

戻り値

FormDataEvent

createEvent("GamepadEvent")

function createEvent(eventInterface: "GamepadEvent"): GamepadEvent

パラメーター

eventInterface

"GamepadEvent"

戻り値

GamepadEvent

createEvent("HashChangeEvent")

function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent

パラメーター

eventInterface

"HashChangeEvent"

戻り値

HashChangeEvent

createEvent("IDBVersionChangeEvent")

function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent

パラメーター

eventInterface

"IDBVersionChangeEvent"

戻り値

IDBVersionChangeEvent

createEvent("InputEvent")

function createEvent(eventInterface: "InputEvent"): InputEvent

パラメーター

eventInterface

"InputEvent"

戻り値

InputEvent

createEvent("KeyboardEvent")

function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent

パラメーター

eventInterface

"KeyboardEvent"

戻り値

KeyboardEvent

createEvent("MediaEncryptedEvent")

function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent

パラメーター

eventInterface

"MediaEncryptedEvent"

戻り値

MediaEncryptedEvent

createEvent("MediaKeyMessageEvent")

function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent

パラメーター

eventInterface

"MediaKeyMessageEvent"

戻り値

MediaKeyMessageEvent

createEvent("MediaQueryListEvent")

function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent

パラメーター

eventInterface

"MediaQueryListEvent"

戻り値

MediaQueryListEvent

createEvent("MediaStreamTrackEvent")

function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent

パラメーター

eventInterface

"MediaStreamTrackEvent"

戻り値

MediaStreamTrackEvent

createEvent("MessageEvent")

function createEvent(eventInterface: "MessageEvent"): MessageEvent<any>

パラメーター

eventInterface

"MessageEvent"

戻り値

MessageEvent<any>

createEvent("MouseEvent")

function createEvent(eventInterface: "MouseEvent"): MouseEvent

パラメーター

eventInterface

"MouseEvent"

戻り値

MouseEvent

createEvent("MouseEvents")

function createEvent(eventInterface: "MouseEvents"): MouseEvent

パラメーター

eventInterface

"MouseEvents"

戻り値

MouseEvent

createEvent("MutationEvent")

function createEvent(eventInterface: "MutationEvent"): MutationEvent

パラメーター

eventInterface

"MutationEvent"

戻り値

MutationEvent

createEvent("MutationEvents")

function createEvent(eventInterface: "MutationEvents"): MutationEvent

パラメーター

eventInterface

"MutationEvents"

戻り値

MutationEvent

createEvent("OfflineAudioCompletionEvent")

function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent

パラメーター

eventInterface

"OfflineAudioCompletionEvent"

戻り値

OfflineAudioCompletionEvent

createEvent("PageTransitionEvent")

function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent

パラメーター

eventInterface

"PageTransitionEvent"

戻り値

PageTransitionEvent

createEvent("PaymentMethodChangeEvent")

function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent

パラメーター

eventInterface

"PaymentMethodChangeEvent"

戻り値

PaymentMethodChangeEvent

createEvent("PaymentRequestUpdateEvent")

function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent

パラメーター

eventInterface

"PaymentRequestUpdateEvent"

戻り値

PaymentRequestUpdateEvent

createEvent("PictureInPictureEvent")

function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent

パラメーター

eventInterface

"PictureInPictureEvent"

戻り値

PictureInPictureEvent

createEvent("PointerEvent")

function createEvent(eventInterface: "PointerEvent"): PointerEvent

パラメーター

eventInterface

"PointerEvent"

戻り値

PointerEvent

createEvent("PopStateEvent")

function createEvent(eventInterface: "PopStateEvent"): PopStateEvent

パラメーター

eventInterface

"PopStateEvent"

戻り値

PopStateEvent

createEvent("ProgressEvent")

function createEvent(eventInterface: "ProgressEvent"): ProgressEvent<EventTarget>

パラメーター

eventInterface

"ProgressEvent"

戻り値

ProgressEvent<EventTarget>

createEvent("PromiseRejectionEvent")

function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent

パラメーター

eventInterface

"PromiseRejectionEvent"

戻り値

PromiseRejectionEvent

createEvent("RTCDataChannelEvent")

function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent

パラメーター

eventInterface

"RTCDataChannelEvent"

戻り値

RTCDataChannelEvent

createEvent("RTCDTMFToneChangeEvent")

function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent

パラメーター

eventInterface

"RTCDTMFToneChangeEvent"

戻り値

RTCDTMFToneChangeEvent

createEvent("RTCErrorEvent")

function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent

パラメーター

eventInterface

"RTCErrorEvent"

戻り値

RTCErrorEvent

createEvent("RTCPeerConnectionIceErrorEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent

パラメーター

eventInterface

"RTCPeerConnectionIceErrorEvent"

戻り値

RTCPeerConnectionIceErrorEvent

createEvent("RTCPeerConnectionIceEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent

パラメーター

eventInterface

"RTCPeerConnectionIceEvent"

戻り値

RTCPeerConnectionIceEvent

createEvent("RTCTrackEvent")

function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent

パラメーター

eventInterface

"RTCTrackEvent"

戻り値

RTCTrackEvent

createEvent("SecurityPolicyViolationEvent")

function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent

パラメーター

eventInterface

"SecurityPolicyViolationEvent"

戻り値

SecurityPolicyViolationEvent

createEvent("SpeechSynthesisErrorEvent")

function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent

パラメーター

eventInterface

"SpeechSynthesisErrorEvent"

戻り値

SpeechSynthesisErrorEvent

createEvent("SpeechSynthesisEvent")

function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent

パラメーター

eventInterface

"SpeechSynthesisEvent"

戻り値

SpeechSynthesisEvent

createEvent("StorageEvent")

function createEvent(eventInterface: "StorageEvent"): StorageEvent

パラメーター

eventInterface

"StorageEvent"

戻り値

StorageEvent

createEvent("SubmitEvent")

function createEvent(eventInterface: "SubmitEvent"): SubmitEvent

パラメーター

eventInterface

"SubmitEvent"

戻り値

SubmitEvent

createEvent("TouchEvent")

function createEvent(eventInterface: "TouchEvent"): TouchEvent

パラメーター

eventInterface

"TouchEvent"

戻り値

TouchEvent

createEvent("TrackEvent")

function createEvent(eventInterface: "TrackEvent"): TrackEvent

パラメーター

eventInterface

"TrackEvent"

戻り値

TrackEvent

createEvent("TransitionEvent")

function createEvent(eventInterface: "TransitionEvent"): TransitionEvent

パラメーター

eventInterface

"TransitionEvent"

戻り値

TransitionEvent

createEvent("UIEvent")

function createEvent(eventInterface: "UIEvent"): UIEvent

パラメーター

eventInterface

"UIEvent"

戻り値

UIEvent

createEvent("UIEvents")

function createEvent(eventInterface: "UIEvents"): UIEvent

パラメーター

eventInterface

"UIEvents"

戻り値

UIEvent

createEvent("WebGLContextEvent")

function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent

パラメーター

eventInterface

"WebGLContextEvent"

戻り値

WebGLContextEvent

createEvent("WheelEvent")

function createEvent(eventInterface: "WheelEvent"): WheelEvent

パラメーター

eventInterface

"WheelEvent"

戻り値

WheelEvent

createEvent(string)

function createEvent(eventInterface: string): Event

パラメーター

eventInterface

string

戻り値

Event

createNodeIterator(Node, number, null | NodeFilter)

ドキュメント内のノードまたは要素のフィルター処理されたリストを走査するために使用できる NodeIterator オブジェクトを作成します。

function createNodeIterator(root: Node, whatToShow?: number, filter?: null | NodeFilter): NodeIterator

パラメーター

root

Node

走査を開始するルート要素またはノード。

whatToShow

number

ノード一覧に表示するノードまたは要素の種類

filter

null | NodeFilter

使用するカスタム NodeFilter 関数。 詳細については、「フィルター」を参照してください。 フィルターがない場合は null を使用します。

戻り値

NodeIterator

createProcessingInstruction(string, string)

ターゲットがターゲットで、データがデータである ProcessingInstruction ノードを返します。 ターゲットが Name production と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。 データに "?>" が含まれている場合"InvalidCharacterError" DOMException がスローされます。

function createProcessingInstruction(target: string, data: string): ProcessingInstruction

パラメーター

target

string

data

string

戻り値

ProcessingInstruction

createRange()

文書の先頭に両方の境界ポイントが配置されている空の範囲オブジェクトを返します。

function createRange(): Range

戻り値

Range

createTextNode(string)

指定した値からテキスト文字列を作成します。

function createTextNode(data: string): Text

パラメーター

data

string

テキスト ノードの nodeValue プロパティを指定する文字列。

戻り値

Text

createTreeWalker(Node, number, null | NodeFilter)

ドキュメント内のノードまたは要素のフィルター処理されたリストを走査するために使用できる TreeWalker オブジェクトを作成します。

function createTreeWalker(root: Node, whatToShow?: number, filter?: null | NodeFilter): TreeWalker

パラメーター

root

Node

走査を開始するルート要素またはノード。

whatToShow

number

ノード リストに表示するノードまたは要素の種類。 詳細については、「whatToShow」を参照してください。

filter

null | NodeFilter

使用するカスタム NodeFilter 関数。

戻り値

TreeWalker

execCommand(string, boolean, string)

警告

この API は非推奨になりました。

現在の文書、現在の選択範囲、または指定された範囲に対してコマンドを実行します。

function execCommand(commandId: string, showUI?: boolean, value?: string): boolean

パラメーター

commandId

string

実行するコマンドを指定する文字列。 このコマンドには、スクリプトで実行できる任意のコマンド識別子を指定できます。

showUI

boolean

ユーザー インターフェイスを表示します。既定値は false です。

value

string

割り当てる値。

戻り値

boolean

exitFullscreen()

ドキュメントの全画面表示要素が全画面表示されないようにし、完了したら promise を解決します。

function exitFullscreen(): Promise<void>

戻り値

Promise<void>

exitPictureInPicture()

function exitPictureInPicture(): Promise<void>

戻り値

Promise<void>

exitPointerLock()

function exitPointerLock()

getElementById(string)

ID 属性の指定した値を持つ最初のオブジェクトへの参照を返します。

function getElementById(elementId: string): null | HTMLElement

パラメーター

elementId

string

ID 値を指定する文字列。

戻り値

null | HTMLElement

getElementsByClassName(string)

classNames によって指定されたすべてのクラスを持つ、メソッドが呼び出されたオブジェクト (ドキュメントまたは要素) 内の要素の HTMLCollection を返します。 classNames 引数は、クラスのスペース区切りのリストとして解釈されます。

function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>

パラメーター

classNames

string

戻り値

HTMLCollectionOf<Element>

getElementsByName(string)

NAME 属性または ID 属性の値に基づいてオブジェクトのコレクションを取得します。

function getElementsByName(elementName: string): NodeListOf<HTMLElement>

パラメーター

elementName

string

NAME 属性または ID 属性の値に基づいてオブジェクトのコレクションを取得します。

戻り値

NodeListOf<HTMLElement>

getElementsByTagName(string)

function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>

パラメーター

qualifiedName

string

戻り値

HTMLCollectionOf<Element>

getElementsByTagName<K>(K)

指定した要素名に基づいてオブジェクトのコレクションを取得します。

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>

パラメーター

qualifiedName

K

戻り値

HTMLCollectionOf<HTMLElementTagNameMap[K]>

getElementsByTagName<K>(K)

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>

パラメーター

qualifiedName

K

戻り値

HTMLCollectionOf<SVGElementTagNameMap[K]>

getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)

namespace と localName が "*" の場合、すべての子孫要素の HTMLCollection が返されます。

名前空間のみが "*" の場合、ローカル名が localName であるすべての子孫要素の HTMLCollection が返されます。

localName のみが "*" の場合は、名前空間が名前空間であるすべての子孫要素の HTMLCollection が返されます。

それ以外の場合は、名前空間が名前空間で、ローカル名が localName であるすべての子孫要素の HTMLCollection を返します。

function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>

パラメーター

namespaceURI

"http://www.w3.org/1999/xhtml"

localName

string

戻り値

HTMLCollectionOf<HTMLElement>

getElementsByTagNameNS("http://www.w3.org/2000/svg", string)

function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>

パラメーター

namespaceURI

"http://www.w3.org/2000/svg"

localName

string

戻り値

HTMLCollectionOf<SVGElement>

getElementsByTagNameNS(null | string, string)

function getElementsByTagNameNS(namespace: null | string, localName: string): HTMLCollectionOf<Element>

パラメーター

namespace

null | string

localName

string

戻り値

HTMLCollectionOf<Element>

getSelection()

Web ページを表示するオブジェクトに読み込まれるドキュメントの現在の選択範囲を表す オブジェクトを返します。

function getSelection(): null | Selection

戻り値

null | Selection

hasFocus()

オブジェクトに現在フォーカスがあるかどうかを示す値を取得します。

function hasFocus(): boolean

戻り値

boolean

hasStorageAccess()

function hasStorageAccess(): Promise<boolean>

戻り値

Promise<boolean>

importNode<T>(T, boolean)

ノードのコピーを返します。 deep が true の場合、コピーにはノードの子孫も含まれます。

node がドキュメントまたはシャドウ ルートの場合は、"NotSupportedError" DOMException をスローします。

function importNode<T>(node: T, deep?: boolean): T

パラメーター

node

T

deep

boolean

戻り値

T

open(string | URL, string, string)

function open(url: string | URL, name: string, features: string): null | Window

パラメーター

url

string | URL

name

string

features

string

戻り値

null | Window

open(string, string)

新しいウィンドウを開き、指定された URL で指定されたドキュメントを読み込みます。 また、url パラメーターと name パラメーターを使用して write メソッドと writeln メソッドの出力を収集する新しいウィンドウを開きます。

function open(unused1?: string, unused2?: string): Document

パラメーター

unused1

string

unused2

string

戻り値

Document

queryCommandEnabled(string)

警告

この API は非推奨になりました。

ドキュメントの現在の状態を指定すると、execCommand を使用して指定したコマンドを正常に実行できるかどうかを示すブール値を返します。

function queryCommandEnabled(commandId: string): boolean

パラメーター

commandId

string

コマンド識別子を指定します。

戻り値

boolean

queryCommandIndeterm(string)

警告

この API は非推奨になりました。

指定したコマンドが不確定状態であるかどうかを示すブール値を返します。

function queryCommandIndeterm(commandId: string): boolean

パラメーター

commandId

string

コマンド識別子を指定する文字列。

戻り値

boolean

queryCommandState(string)

警告

この API は非推奨になりました。

コマンドの現在の状態を示すブール値を返します。

function queryCommandState(commandId: string): boolean

パラメーター

commandId

string

コマンド識別子を指定する文字列。

戻り値

boolean

queryCommandSupported(string)

警告

この API は非推奨になりました。

現在の範囲で現在のコマンドがサポートされているかどうかを示すブール値を返します。

function queryCommandSupported(commandId: string): boolean

パラメーター

commandId

string

コマンド識別子を指定します。

戻り値

boolean

queryCommandValue(string)

警告

この API は非推奨になりました。

指定したコマンドの文書、範囲、または現在の選択範囲の現在の値を返します。

function queryCommandValue(commandId: string): string

パラメーター

commandId

string

コマンド識別子を指定する文字列。

戻り値

string

releaseEvents()

警告

この API は非推奨になりました。

function releaseEvents()

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)

function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)

パラメーター

type

string

listener

EventListenerOrEventListenerObject

options

boolean | EventListenerOptions

removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)

function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)

パラメーター

type

K

listener

(this: Document, ev: DocumentEventMap[K]) => any

options

boolean | EventListenerOptions

requestStorageAccess()

function requestStorageAccess(): Promise<void>

戻り値

Promise<void>

write(string[])

指定したウィンドウ内のドキュメントに 1 つ以上の HTML 式を書き込みます。

function write(text: string[])

パラメーター

text

string[]

writeln(string[])

1 つ以上の HTML 式を書き込み、その後にキャリッジ リターンを指定したウィンドウ内のドキュメントに書き込みます。

function writeln(text: string[])

パラメーター

text

string[]

継承済みメソッドの詳細

append((string | Node)[])

ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等の Text ノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

function append(nodes: (string | Node)[])

パラメーター

nodes

(string | Node)[]

継承元 ParentNode.append

appendChild<T>(T)

function appendChild<T>(node: T): T

パラメーター

node

T

戻り値

T

継承元 Node.appendChild

cloneNode(boolean)

ノードのコピーを返します。 deep が true の場合、コピーにはノードの子孫も含まれます。

function cloneNode(deep?: boolean): Node

パラメーター

deep

boolean

戻り値

Node

継承元 Node.cloneNode

compareDocumentPosition(Node)

ノードに対する他の相対位置を示すビットマスクを返します。

function compareDocumentPosition(other: Node): number

パラメーター

other

Node

戻り値

number

継承元 Node.compareDocumentPosition

contains(null | Node)

other がノードの包括的な子孫である場合は true、それ以外の場合は false を返します。

function contains(other: null | Node): boolean

パラメーター

other

null | Node

戻り値

boolean

継承元 Node.contains

createExpression(string, null | XPathNSResolver)

function createExpression(expression: string, resolver?: null | XPathNSResolver): XPathExpression

パラメーター

expression

string

resolver

null | XPathNSResolver

戻り値

XPathExpression

継承元 XPathEvaluatorBase.createExpression

createNSResolver(Node)

function createNSResolver(nodeResolver: Node): XPathNSResolver

パラメーター

nodeResolver

Node

戻り値

XPathNSResolver

継承元 XPathEvaluatorBase.createNSResolver

dispatchEvent(Event)

合成イベント イベントをターゲットにディスパッチし、イベントの取り消し可能な属性値が false であるか、preventDefault() メソッドが呼び出されなかった場合は true を返し、それ以外の場合は false を返します。

function dispatchEvent(event: Event): boolean

パラメーター

event

Event

戻り値

boolean

継承元 Node.dispatchEvent

elementFromPoint(number, number)

指定した x 座標と指定した y 座標の要素を返します。

function elementFromPoint(x: number, y: number): null | Element

パラメーター

x

number

x オフセット

y

number

y オフセット

戻り値

null | Element

継承元 DocumentOrShadowRoot.elementFromPoint

elementsFromPoint(number, number)

function elementsFromPoint(x: number, y: number): Element[]

パラメーター

x

number

y

number

戻り値

Element[]

継承元 DocumentOrShadowRoot.elementsFromPoint

evaluate(string, Node, null | XPathNSResolver, number, null | XPathResult)

function evaluate(expression: string, contextNode: Node, resolver?: null | XPathNSResolver, type?: number, result?: null | XPathResult): XPathResult

パラメーター

expression

string

contextNode

Node

resolver

null | XPathNSResolver

type

number

result

null | XPathResult

戻り値

XPathResult

継承元 XPathEvaluatorBase.evaluate

getAnimations()

function getAnimations(): Animation[]

戻り値

Animation[]

継承元 DocumentOrShadowRoot.getAnimations

getRootNode(GetRootNodeOptions)

ノードのルートを返します。

function getRootNode(options?: GetRootNodeOptions): Node

パラメーター

options

GetRootNodeOptions

戻り値

Node

継承元 Node.getRootNode

hasChildNodes()

ノードに子があるかどうかを返します。

function hasChildNodes(): boolean

戻り値

boolean

継承元 Node.hasChildNodes

insertBefore<T>(T, null | Node)

function insertBefore<T>(node: T, child: null | Node): T

パラメーター

node

T

child

null | Node

戻り値

T

継承元 Node.insertBefore

isDefaultNamespace(null | string)

function isDefaultNamespace(namespace: null | string): boolean

パラメーター

namespace

null | string

戻り値

boolean

継承元 Node.isDefaultNamespace

isEqualNode(null | Node)

node と otherNode のプロパティが同じかどうかを返します。

function isEqualNode(otherNode: null | Node): boolean

パラメーター

otherNode

null | Node

戻り値

boolean

継承元 Node.isEqualNode

isSameNode(null | Node)

function isSameNode(otherNode: null | Node): boolean

パラメーター

otherNode

null | Node

戻り値

boolean

継承元 Node.isSameNode

lookupNamespaceURI(null | string)

function lookupNamespaceURI(prefix: null | string): null | string

パラメーター

prefix

null | string

戻り値

null | string

継承元 Node.lookupNamespaceURI

lookupPrefix(null | string)

function lookupPrefix(namespace: null | string): null | string

パラメーター

namespace

null | string

戻り値

null | string

継承元 Node.lookupPrefix

normalize()

空の排他テキスト ノードを削除し、残りの連続する排他テキスト ノードのデータをノードの最初のノードに連結します。

function normalize()

継承元 Node.normalize

prepend((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

function prepend(nodes: (string | Node)[])

パラメーター

nodes

(string | Node)[]

継承元 ParentNode.prepend

querySelector<E>(string)

function querySelector<E>(selectors: string): null | E

パラメーター

selectors

string

戻り値

null | E

継承元 ParentNode.querySelector

querySelector<K>(K)

セレクターに一致するノードの子孫である最初の要素を返します。

function querySelector<K>(selectors: K): null | HTMLElementTagNameMap[K]

パラメーター

selectors

K

戻り値

null | HTMLElementTagNameMap[K]

継承元 ParentNode.querySelector

querySelector<K>(K)

function querySelector<K>(selectors: K): null | SVGElementTagNameMap[K]

パラメーター

selectors

K

戻り値

null | SVGElementTagNameMap[K]

継承元 ParentNode.querySelector

querySelectorAll<E>(string)

function querySelectorAll<E>(selectors: string): NodeListOf<E>

パラメーター

selectors

string

戻り値

NodeListOf<E>

継承元 ParentNode.querySelectorAll

querySelectorAll<K>(K)

セレクターに一致するノードのすべての要素の子孫を返します。

function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>

パラメーター

selectors

K

戻り値

NodeListOf<HTMLElementTagNameMap[K]>

継承元 ParentNode.querySelectorAll

querySelectorAll<K>(K)

function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>

パラメーター

selectors

K

戻り値

NodeListOf<SVGElementTagNameMap[K]>

継承元 ParentNode.querySelectorAll

removeChild<T>(T)

function removeChild<T>(child: T): T

パラメーター

child

T

戻り値

T

継承元 Node.removeChild

replaceChild<T>(Node, T)

function replaceChild<T>(node: Node, child: T): T

パラメーター

node

Node

child

T

戻り値

T

継承元 Node.replaceChild

replaceChildren((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードのすべての子をノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

function replaceChildren(nodes: (string | Node)[])

パラメーター

nodes

(string | Node)[]

継承元 ParentNode.replaceChildren