次の方法で共有


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

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

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

defaultView

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

designMode

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

dir

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

doctype

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

documentElement

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

documentURI

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

domain

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

embeds

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

fgColor

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

forms

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

fullscreen
fullscreenEnabled

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

head

ヘッド要素を返します。

hidden
images

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

implementation

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

inputEncoding

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

lastModified

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

linkColor

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

links

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

location

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

mozCancelFullScreen
msExitFullscreen
onfullscreenchange
onfullscreenerror
onpointerlockchange
onpointerlockerror
onreadystatechange

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

onvisibilitychange
ownerDocument
pictureInPictureEnabled
plugins

ドキュメント内の埋め込み要素の 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

ノードはコメント ノードです。

DOCUMENT_FRAGMENT_NODE

ノードは DocumentFragment ノードです。

DOCUMENT_NODE

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

DOCUMENT_POSITION_CONTAINED_BY

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

DOCUMENT_POSITION_CONTAINS

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

DOCUMENT_POSITION_DISCONNECTED

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

DOCUMENT_POSITION_FOLLOWING

他のノードが次のノードである場合に設定します。

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING

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

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

ノードは ProcessingInstruction ノードです。

styleSheets

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

textContent
TEXT_NODE

ノードはテキスト ノードです。

メソッド

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

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

ノードがドキュメントの場合は、"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 運用と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。

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

localName が QName 運用と一致しません。 名前空間プレフィックスが null ではなく、名前空間が空の文字列です。 名前空間プレフィックスは "xml" で、名前空間は XML 名前空間ではありません。 qualifiedName または名前空間プレフィックスは "xmlns" で、名前空間は XMLNS 名前空間ではありません。 namespace は XMLNS 名前空間であり、修飾名も名前空間プレフィックスも "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 運用と一致しない場合は、"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)

名前空間と 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 の場合、コピーにはノードの子孫も含まれます。

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

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

新しいウィンドウを開き、指定された URL で指定されたドキュメントを読み込みます。 また、url パラメーターと name パラメーターを使用して書き込みメソッドと 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)[])

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

ノード ツリーの制約に違反した場合は、"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)[])

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

ノード ツリーの制約に違反した場合は、"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

要素がクラシック スクリプトを表す限り、現在実行中のスクリプト要素または 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: 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

ドキュメント内の埋め込み要素の 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

ノードはコメント ノードです。

COMMENT_NODE: number

プロパティ値

number

Node.COMMENT_NODE から継承された

DOCUMENT_FRAGMENT_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

他のノードが次のノードである場合に設定します。

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

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

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

Inherited From 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

Inherited From 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

Inherited From 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

Inherited From 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.toggle から継承された

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

Inherited From 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

ノードは 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

ノードはテキスト ノードです。

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)

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

ノードがドキュメントの場合は、"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 運用と一致しない場合は、"InvalidCharacterError" DOMException がスローされます。

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

localName が QName 運用と一致しません。 名前空間プレフィックスが null ではなく、名前空間が空の文字列です。 名前空間プレフィックスは "xml" で、名前空間は XML 名前空間ではありません。 qualifiedName または名前空間プレフィックスは "xmlns" で、名前空間は XMLNS 名前空間ではありません。 namespace は XMLNS 名前空間であり、修飾名も名前空間プレフィックスも "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 運用と一致しない場合は、"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)

名前空間と 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 の場合、コピーにはノードの子孫も含まれます。

ノードがドキュメントまたはシャドウ ルートの場合は、"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 パラメーターを使用して書き込みメソッドと 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)[])

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

ノード ツリーの制約に違反した場合は、"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

ノードから継承.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)[])

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

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

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

パラメーター

nodes

(string | Node)[]

parentNode.replaceChildren から継承