Document interface

브라우저에 로드된 모든 웹 페이지는 DOM 트리인 웹 페이지의 콘텐츠에 대한 진입점 역할을 합니다.

Extends

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

속성

alinkColor

문서에 있는 모든 활성 링크의 색을 설정하거나 가져옵니다.

all

개체에 포함된 요소의 컬렉션에 대한 참조를 반환합니다.

anchors

이름 및/또는 ID 속성이 있는 모든 개체의 컬렉션을 검색합니다. 이 컬렉션의 개체는 HTML 원본 순서입니다.

applets

문서에 있는 모든 애플릿 개체의 컬렉션을 검색합니다.

bgColor

더 이상 사용되지 않습니다. 개체 뒤의 배경색을 나타내는 값을 설정하거나 검색합니다.

body

문서 본문의 시작과 끝을 지정합니다.

characterSet

문서의 인코딩을 반환합니다.

charset

개체를 인코딩하는 데 사용되는 문자 집합을 가져오거나 설정합니다.

compatMode

개체에 대해 표준 규격 모드가 켜져 있는지 여부를 나타내는 값을 가져옵니다.

contentType

문서의 콘텐츠 형식을 반환합니다.

cookie

문서에 적용되는 HTTP 쿠키를 반환합니다. 쿠키가 없거나 쿠키를 이 리소스에 적용할 수 없는 경우 빈 문자열이 반환됩니다.

설정하여 요소의 HTTP 쿠키 집합에 새 쿠키를 추가할 수 있습니다.

콘텐츠가 고유한 원본으로 샌드박스되는 경우(예: 샌드박스 특성이 있는 iframe에서) 가져오기 및 설정 시 "SecurityError" DOMException이 throw됩니다.

currentScript

요소가 클래식 스크립트를 나타내는 한 현재 실행 중인 스크립트 요소 또는 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

문서 개체에 로드되는 웹 페이지를 만드는 데 사용되는 문자 인코딩을 반환합니다.

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

노드는 CDATASection 노드입니다.

childElementCount
childNodes

자식을 반환합니다.

children

자식 요소를 반환합니다.

COMMENT_NODE

node는 주석 노드입니다.

DOCUMENT_FRAGMENT_NODE

node는 DocumentFragment 노드입니다.

DOCUMENT_NODE

node는 문서입니다.

DOCUMENT_POSITION_CONTAINED_BY

other가 노드의 하위 항목인 경우 를 설정합니다.

DOCUMENT_POSITION_CONTAINS

다른 노드가 노드의 상위 항목인 경우 를 설정합니다.

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

기간 특성이 업데이트되면 발생합니다.

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

play 메서드가 요청되면 발생합니다.

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는 텍스트 노드입니다.

메서드

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

다른 문서에서 노드를 이동하고 반환합니다.

node가 문서인 경우 는 "NotSupportedError" DOMException을 throw하거나 노드가 섀도 루트인 경우 "HierarchyRequestError" DOMException을 throw합니다.

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이 throw됩니다.

다음 조건 중 하나가 true이면 "NamespaceError" DOMException이 throw됩니다.

localName이 QName 프로덕션과 일치하지 않습니다. 네임스페이스 접두사는 null이 아니고 네임스페이스는 빈 문자열입니다. 네임스페이스 접두사는 "xml"이고 네임스페이스는 XML 네임스페이스가 아닙니다. qualifiedName 또는 네임스페이스 접두사는 "xmlns"이고 네임스페이스는 XMLNS 네임스페이스가 아닙니다. 네임스페이스는 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 노드를 반환합니다. 대상이 이름 프로덕션과 일치하지 않으면 "InvalidCharacterError" DOMException이 throw됩니다. 데이터에 "?>"가 포함된 경우 "InvalidCharacterError" DOMException이 throw됩니다.

createRange()

문서의 시작 부분에 두 경계 지점이 모두 배치된 빈 범위 개체를 반환합니다.

createTextNode(string)

지정된 값에서 텍스트 문자열을 만듭니다.

createTreeWalker(Node, number, null | NodeFilter)

문서에서 필터링된 노드 또는 요소 목록을 트래버스하는 데 사용할 수 있는 TreeWalker 개체를 만듭니다.

execCommand(string, boolean, string)

현재 문서, 현재 선택 영역 또는 지정된 범위에서 명령을 실행합니다.

exitFullscreen()

문서의 전체 화면 요소가 전체 화면으로 표시되지 않도록 하고 완료되면 프라미스를 해결합니다.

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()

웹 페이지를 표시하는 개체에 로드된 문서의 현재 선택을 나타내는 개체를 반환합니다.

hasFocus()

개체에 현재 포커스가 있는지 여부를 나타내는 값을 가져옵니다.

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

노드의 복사본을 반환합니다. deep이 true이면 복사본에는 노드의 하위 항목도 포함됩니다.

노드가 문서 또는 섀도 루트인 경우 는 "NotSupportedError" DOMException을 throw합니다.

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[])

지정된 창의 문서에 하나 이상의 HTML 식을 씁니다.

writeln(string[])

하나 이상의 HTML 식과 캐리지 리턴을 지정한 창의 문서에 씁니다.

상속된 메서드

append((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 바꾸면서 노드의 마지막 자식 뒤에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

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)[])

노드의 문자열을 해당하는 텍스트 노드로 바꾸면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

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을 throw합니다.

속성 세부 정보

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 쿠키를 반환합니다. 쿠키가 없거나 쿠키를 이 리소스에 적용할 수 없는 경우 빈 문자열이 반환됩니다.

설정하여 요소의 HTTP 쿠키 집합에 새 쿠키를 추가할 수 있습니다.

콘텐츠가 고유한 원본으로 샌드박스되는 경우(예: 샌드박스 특성이 있는 iframe에서) 가져오기 및 설정 시 "SecurityError" DOMException이 throw됩니다.

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 요소를 반환합니다.

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.

문서 개체에 로드되는 웹 페이지를 만드는 데 사용되는 문자 인코딩을 반환합니다.

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

상속된 From DocumentOrShadowRoot.activeElement

adoptedStyleSheets

adoptedStyleSheets: CSSStyleSheet[]

속성 값

CSSStyleSheet[]

상속된 From DocumentOrShadowRoot.adoptedStyleSheets

ATTRIBUTE_NODE

ATTRIBUTE_NODE: number

속성 값

number

상속된 From Node.ATTRIBUTE_NODE

baseURI

노드의 노드 문서의 문서 기본 URL을 반환합니다.

baseURI: string

속성 값

string

상속된 From Node.baseURI

CDATA_SECTION_NODE

노드는 CDATASection 노드입니다.

CDATA_SECTION_NODE: number

속성 값

number

상속된 From Node.CDATA_SECTION_NODE

childElementCount

childElementCount: number

속성 값

number

상속된 From ParentNode.childElementCount

childNodes

자식을 반환합니다.

childNodes: NodeListOf<ChildNode>

속성 값

NodeListOf<ChildNode>

상속된 From Node.childNodes

children

자식 요소를 반환합니다.

children: HTMLCollection

속성 값

HTMLCollection

상속된 From ParentNode.children

COMMENT_NODE

node는 주석 노드입니다.

COMMENT_NODE: number

속성 값

number

상속된 From Node.COMMENT_NODE

DOCUMENT_FRAGMENT_NODE

node는 DocumentFragment 노드입니다.

DOCUMENT_FRAGMENT_NODE: number

속성 값

number

상속된 From Node.DOCUMENT_FRAGMENT_NODE

DOCUMENT_NODE

node는 문서입니다.

DOCUMENT_NODE: number

속성 값

number

상속된 From Node.DOCUMENT_NODE

DOCUMENT_POSITION_CONTAINED_BY

other가 노드의 하위 항목인 경우 를 설정합니다.

DOCUMENT_POSITION_CONTAINED_BY: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_CONTAINS

다른 노드가 노드의 상위 항목인 경우 를 설정합니다.

DOCUMENT_POSITION_CONTAINS: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_DISCONNECTED

노드와 다른 노드가 동일한 트리에 없는 경우 를 설정합니다.

DOCUMENT_POSITION_DISCONNECTED: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_FOLLOWING

다른 노드가 노드를 따르는 경우 를 설정합니다.

DOCUMENT_POSITION_FOLLOWING: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_PRECEDING

다른 노드가 이전 노드인 경우 를 설정합니다.

DOCUMENT_POSITION_PRECEDING: number

속성 값

number

상속된 From Node.DOCUMENT_POSITION_PRECEDING

DOCUMENT_TYPE_NODE

node는 doctype입니다.

DOCUMENT_TYPE_NODE: number

속성 값

number

상속된 From Node.DOCUMENT_TYPE_NODE

ELEMENT_NODE

node는 요소입니다.

ELEMENT_NODE: number

속성 값

number

상속된 From Node.ELEMENT_NODE

ENTITY_NODE

ENTITY_NODE: number

속성 값

number

상속된 From Node.ENTITY_NODE

ENTITY_REFERENCE_NODE

ENTITY_REFERENCE_NODE: number

속성 값

number

상속된 From Node.ENTITY_REFERENCE_NODE

firstChild

첫 번째 자식 값을 반환합니다.

firstChild: null | ChildNode

속성 값

null | ChildNode

상속된 From Node.firstChild

firstElementChild

요소인 첫 번째 자식 을 반환하고, 그렇지 않으면 null을 반환합니다.

firstElementChild: null | Element

속성 값

null | Element

상속된 From ParentNode.firstElementChild

fonts

fonts: FontFaceSet

속성 값

FontFaceSet

상속된 From FontFaceSource.fonts

fullscreenElement

문서의 전체 화면 요소를 반환합니다.

fullscreenElement: null | Element

속성 값

null | Element

상속된 From DocumentOrShadowRoot.fullscreenElement

isConnected

노드가 연결되어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

isConnected: boolean

속성 값

boolean

상속된 From Node.isConnected

lastChild

마지막 자식 값을 반환합니다.

lastChild: null | ChildNode

속성 값

null | ChildNode

상속된 From Node.lastChild

lastElementChild

요소인 마지막 자식 을 반환하고, 그렇지 않으면 null을 반환합니다.

lastElementChild: null | Element

속성 값

null | Element

상속된 From ParentNode.lastElementChild

nextSibling

다음 형제를 반환합니다.

nextSibling: null | ChildNode

속성 값

null | ChildNode

상속된 From Node.nextSibling

nodeName

노드 형식에 적합한 문자열을 반환합니다.

nodeName: string

속성 값

string

상속된 From Node.nodeName

nodeType

노드의 형식을 반환합니다.

nodeType: number

속성 값

number

상속된 From Node.nodeType

nodeValue

nodeValue: null | string

속성 값

null | string

상속된 From Node.nodeValue

NOTATION_NODE

NOTATION_NODE: number

속성 값

number

상속된 From Node.NOTATION_NODE

onabort

사용자가 다운로드를 중단하면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onabort

onanimationcancel

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

속성 값

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

상속된 From GlobalEventHandlers.onanimationcancel

onanimationend

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

속성 값

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

상속된 From GlobalEventHandlers.onanimationend

onanimationiteration

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

속성 값

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

상속된 From GlobalEventHandlers.onanimationiteration

onanimationstart

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

속성 값

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

상속된 From GlobalEventHandlers.onanimationstart

onauxclick

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

속성 값

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

상속된 From GlobalEventHandlers.onauxclick

onbeforeinput

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

속성 값

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

상속된 From GlobalEventHandlers.onbeforeinput

onblur

개체가 입력 포커스를 잃을 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onblur

oncancel

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

속성 값

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

상속된 From GlobalEventHandlers.oncancel

oncanplay

재생이 가능하지만 추가 버퍼링이 필요할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.oncanplay

oncanplaythrough

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

속성 값

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

상속된 From GlobalEventHandlers.oncanplaythrough

onchange

개체 또는 선택 영역의 내용이 변경되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onchange

onclick

사용자가 개체의 왼쪽 마우스 단추를 클릭하면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onclick

onclose

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

속성 값

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

상속된 From GlobalEventHandlers.onclose

oncontextmenu

사용자가 클라이언트 영역에서 마우스 오른쪽 단추를 클릭하여 상황에 맞는 메뉴를 열면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.oncontextmenu

oncopy

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

속성 값

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

상속된 From DocumentAndElementEventHandlers.oncopy

oncuechange

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

속성 값

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

상속된 From GlobalEventHandlers.oncuechange

oncut

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

속성 값

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

상속된 From DocumentAndElementEventHandlers.oncut

ondblclick

사용자가 개체를 두 번 클릭하면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondblclick

ondrag

끌기 작업 중에 소스 개체에서 계속 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondrag

ondragend

사용자가 끌기 작업을 종료할 때 마우스를 놓으면 원본 개체에서 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondragend

ondragenter

사용자가 개체를 유효한 놓기 대상으로 끌면 대상 요소에서 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondragenter

ondragleave

끌기 작업 중에 사용자가 유효한 놓기 대상에서 마우스를 이동할 때 대상 개체에서 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondragleave

ondragover

사용자가 개체를 유효한 놓기 대상 위로 끌어 놓는 동안 대상 요소에서 계속 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondragover

ondragstart

사용자가 텍스트 선택 영역 또는 선택한 개체를 끌기 시작하면 원본 개체에서 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondragstart

ondrop

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

속성 값

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

상속된 From GlobalEventHandlers.ondrop

ondurationchange

기간 특성이 업데이트되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.ondurationchange

onemptied

미디어 요소가 초기 상태로 다시 설정되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onemptied

onended

재생 종료에 도달하면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onended

onerror

개체를 로드하는 동안 오류가 발생할 때 발생합니다.

onerror: OnErrorEventHandler

속성 값

OnErrorEventHandler

상속된 From GlobalEventHandlers.onerror

onfocus

개체가 포커스를 받으면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onfocus

onformdata

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

속성 값

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

상속된 From GlobalEventHandlers.onformdata

ongotpointercapture

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

속성 값

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

상속된 From GlobalEventHandlers.ongotpointercapture

oninput

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

속성 값

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

상속된 From GlobalEventHandlers.oninput

oninvalid

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

속성 값

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

상속된 From GlobalEventHandlers.oninvalid

onkeydown

사용자가 키를 누르면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onkeydown

onkeypress

경고

이 API는 이제 사용되지 않습니다.

사용자가 영숫자 키를 누르면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onkeypress

onkeyup

사용자가 키를 놓으면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onkeyup

onload

브라우저에서 개체를 로드한 직후에 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onload

onloadeddata

미디어 데이터가 현재 재생 위치에 로드될 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onloadeddata

onloadedmetadata

미디어의 기간 및 크기가 결정되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onloadedmetadata

onloadstart

Internet Explorer에서 미디어 데이터를 검색하기 시작할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onloadstart

onlostpointercapture

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

속성 값

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

상속된 From GlobalEventHandlers.onlostpointercapture

onmousedown

사용자가 마우스 단추를 사용하여 개체를 클릭하면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onmousedown

onmouseenter

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

속성 값

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

상속된 From GlobalEventHandlers.onmouseenter

onmouseleave

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

속성 값

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

상속된 From GlobalEventHandlers.onmouseleave

onmousemove

사용자가 개체 위로 마우스를 이동할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onmousemove

onmouseout

사용자가 개체의 경계를 벗어나 마우스 포인터를 이동할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onmouseout

onmouseover

사용자가 마우스 포인터를 개체로 이동할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onmouseover

onmouseup

마우스가 개체 위에 있는 동안 사용자가 마우스 단추를 놓으면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onmouseup

onpaste

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

속성 값

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

상속된 From DocumentAndElementEventHandlers.onpaste

onpause

재생이 일시 중지되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onpause

onplay

play 메서드가 요청되면 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onplay

onplaying

오디오 또는 비디오가 재생되기 시작할 때 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onplaying

onpointercancel

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

속성 값

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

상속된 From GlobalEventHandlers.onpointercancel

onpointerdown

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerdown

onpointerenter

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerenter

onpointerleave

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerleave

onpointermove

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

속성 값

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

상속된 From GlobalEventHandlers.onpointermove

onpointerout

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerout

onpointerover

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerover

onpointerup

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

속성 값

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

상속된 From GlobalEventHandlers.onpointerup

onprogress

미디어 데이터를 다운로드하는 동안 진행률을 나타내기 위해 발생합니다.

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

속성 값

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

상속된 From GlobalEventHandlers.onprogress

onratechange

재생 속도가 증가하거나 감소할 때 발생합니다.

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

속성 값

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

상속된 From 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.onuchcancel

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_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을 throw하거나 노드가 섀도 루트인 경우 "HierarchyRequestError" DOMException을 throw합니다.

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이 throw됩니다.

다음 조건 중 하나가 true이면 "NamespaceError" DOMException이 throw됩니다.

localName이 QName 프로덕션과 일치하지 않습니다. 네임스페이스 접두사는 null이 아니고 네임스페이스는 빈 문자열입니다. 네임스페이스 접두사는 "xml"이고 네임스페이스는 XML 네임스페이스가 아닙니다. qualifiedName 또는 네임스페이스 접두사는 "xmlns"이고 네임스페이스는 XMLNS 네임스페이스가 아닙니다. 네임스페이스는 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 노드를 반환합니다. 대상이 이름 프로덕션과 일치하지 않으면 "InvalidCharacterError" DOMException이 throw됩니다. 데이터에 "?>"가 포함된 경우 "InvalidCharacterError" DOMException이 throw됩니다.

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()

문서의 전체 화면 요소가 전체 화면으로 표시되지 않도록 하고 완료되면 프라미스를 해결합니다.

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()

웹 페이지를 표시하는 개체에 로드된 문서의 현재 선택을 나타내는 개체를 반환합니다.

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을 throw합니다.

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[])

지정된 창의 문서에 하나 이상의 HTML 식을 씁니다.

function write(text: string[])

매개 변수

text

string[]

writeln(string[])

하나 이상의 HTML 식과 캐리지 리턴을 지정한 창의 문서에 씁니다.

function writeln(text: string[])

매개 변수

text

string[]

상속된 메서드 세부 정보

append((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 바꾸면서 노드의 마지막 자식 뒤에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

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

매개 변수

nodes

(string | Node)[]

상속된 From ParentNode.append

appendChild<T>(T)

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

매개 변수

node

T

반환

T

상속된 From Node.appendChild

cloneNode(boolean)

노드의 복사본을 반환합니다. deep이 true이면 복사본에는 노드의 하위 항목도 포함됩니다.

function cloneNode(deep?: boolean): Node

매개 변수

deep

boolean

반환

Node

상속된 From Node.cloneNode

compareDocumentPosition(Node)

노드를 기준으로 다른 위치의 위치를 나타내는 비트 마스크를 반환합니다.

function compareDocumentPosition(other: Node): number

매개 변수

other

Node

반환

number

상속된 From Node.compareDocumentPosition

contains(null | Node)

other가 노드의 포괄 하위 항목이면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

function contains(other: null | Node): boolean

매개 변수

other

null | Node

반환

boolean

상속된 From Node.contains

createExpression(string, null | XPathNSResolver)

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

매개 변수

expression

string

resolver

null | XPathNSResolver

반환

XPathExpression

상속된 From XPathEvaluatorBase.createExpression

createNSResolver(Node)

function createNSResolver(nodeResolver: Node): XPathNSResolver

매개 변수

nodeResolver

Node

반환

XPathNSResolver

상속된 From XPathEvaluatorBase.createNSResolver

dispatchEvent(Event)

가상 이벤트 이벤트를 대상으로 디스패치하고, 이벤트의 취소 가능한 특성 값이 false이거나 preventDefault() 메서드가 호출되지 않은 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

function dispatchEvent(event: Event): boolean

매개 변수

event

Event

반환

boolean

상속된 From Node.dispatchEvent

elementFromPoint(number, number)

지정된 x 좌표와 지정된 y 좌표의 요소를 반환합니다.

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

매개 변수

x

number

x 오프셋

y

number

y 오프셋

반환

null | Element

상속된 From DocumentOrShadowRoot.elementFromPoint

elementsFromPoint(number, number)

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

매개 변수

x

number

y

number

반환

Element[]

상속된 From 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

상속된 From XPathEvaluatorBase.evaluate

getAnimations()

function getAnimations(): Animation[]

반환

Animation[]

상속된 From DocumentOrShadowRoot.getAnimations

getRootNode(GetRootNodeOptions)

노드의 루트를 반환합니다.

function getRootNode(options?: GetRootNodeOptions): Node

매개 변수

options

GetRootNodeOptions

반환

Node

상속된 From Node.getRootNode

hasChildNodes()

노드에 자식이 있는지 여부를 반환합니다.

function hasChildNodes(): boolean

반환

boolean

상속된 From Node.hasChildNodes

insertBefore<T>(T, null | Node)

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

매개 변수

node

T

child

null | Node

반환

T

상속된 From Node.insertBefore

isDefaultNamespace(null | string)

function isDefaultNamespace(namespace: null | string): boolean

매개 변수

namespace

null | string

반환

boolean

상속된 From Node.isDefaultNamespace

isEqualNode(null | Node)

node와 otherNode의 속성이 같은지 여부를 반환합니다.

function isEqualNode(otherNode: null | Node): boolean

매개 변수

otherNode

null | Node

반환

boolean

상속된 From Node.isEqualNode

isSameNode(null | Node)

function isSameNode(otherNode: null | Node): boolean

매개 변수

otherNode

null | Node

반환

boolean

상속된 From Node.isSameNode

lookupNamespaceURI(null | string)

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

매개 변수

prefix

null | string

반환

null | string

상속된 From Node.lookupNamespaceURI

lookupPrefix(null | string)

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

매개 변수

namespace

null | string

반환

null | string

상속된 From Node.lookupPrefix

normalize()

빈 배타적 텍스트 노드를 제거하고 나머지 연속 배타적 텍스트 노드의 데이터를 해당 노드의 첫 번째 노드에 연결합니다.

function normalize()

상속된 From Node.normalize

prepend((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 바꾸면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

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

매개 변수

nodes

(string | Node)[]

상속된 From ParentNode.prepend

querySelector<E>(string)

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

매개 변수

selectors

string

반환

null | E

상속된 From ParentNode.querySelector

querySelector<K>(K)

선택기와 일치하는 노드의 하위 항목인 첫 번째 요소를 반환합니다.

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

매개 변수

selectors

K

반환

null | HTMLElementTagNameMap[K]

상속된 From ParentNode.querySelector

querySelector<K>(K)

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

매개 변수

selectors

K

반환

null | SVGElementTagNameMap[K]

상속된 From ParentNode.querySelector

querySelectorAll<E>(string)

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

매개 변수

selectors

string

반환

NodeListOf<E>

상속된 From ParentNode.querySelectorAll

querySelectorAll<K>(K)

선택기와 일치하는 노드의 모든 요소 하위 항목을 반환합니다.

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

매개 변수

selectors

K

반환

NodeListOf<HTMLElementTagNameMap[K]>

상속된 From ParentNode.querySelectorAll

querySelectorAll<K>(K)

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

매개 변수

selectors

K

반환

NodeListOf<SVGElementTagNameMap[K]>

상속된 From ParentNode.querySelectorAll

removeChild<T>(T)

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

매개 변수

child

T

반환

T

상속된 From Node.removeChild

replaceChild<T>(Node, T)

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

매개 변수

node

Node

child

T

반환

T

상속된 From Node.replaceChild

replaceChildren((string | Node)[])

노드의 모든 자식을 노드로 바꾸고 노드의 문자열을 해당하는 텍스트 노드로 바꿉니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

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

매개 변수

nodes

(string | Node)[]

상속된 From ParentNode.replaceChildren