Document interface
A Document interface representa qualquer página da Web carregada no navegador e serve como um ponto de entrada no conteúdo da página da Web, que é a árvore DOM.
- Extends
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
Propriedades
| alink |
Retorna ou define a cor de um link ativo no corpo do documento. |
| all | A propriedade somente |
| anchors | A |
| applets | A |
| bg |
A propriedade preterida |
| body | A |
| character |
A |
| charset | |
| compat |
A |
| content |
A |
| cookie | A propriedade |
| current |
A |
| default |
Em navegadores, |
| design |
|
| dir | A |
| doctype | A |
| document |
A |
| documentURI | A |
| domain | A |
| embeds | A |
| fg |
|
| forms | A |
| fragment |
A |
| fullscreen | A propriedade somente leitura da |
| fullscreen |
A propriedade somente |
| head | A |
| hidden | A |
| images | A |
| implementation | A |
| input |
|
| last |
A |
| link |
A |
| links | A |
| location | A |
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
A propriedade somente |
| picture |
A propriedade somente |
| plugins | A |
| ready |
A |
| referrer | A |
| root |
|
| scripts | A |
| scrolling |
A |
| text |
|
| timeline | A |
| title | A |
| URL | A |
| visibility |
A |
| vlink |
A |
| webkit |
Propriedades herdadas
| active |
Retorna o elemento mais profundo no documento por meio do qual ou para quais eventos principais estão sendo roteado. Este é, aproximadamente, o elemento focado no documento. Para fins dessa API, quando um contexto de navegação filho é focado, seu contêiner é focado no contexto de navegação pai. Por exemplo, se o usuário mover o foco para um controle de texto em um iframe, o iframe será o elemento retornado pela API activeElement no documento de nó do iframe. Da mesma forma, quando o elemento focalizado estiver em uma árvore de nó diferente de documentOrShadowRoot, o elemento retornado será o host localizado na mesma árvore de nó que documentOrShadowRoot se documentOrShadowRoot for um ancestral inclusivo que inclui sombras do elemento focalizado e nulo, caso contrário. |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | A propriedade somente |
| CDATA_SECTION_NODE | o nó é um nó CDATASection. |
| child |
|
| child |
A propriedade somente |
| children | Retorna os elementos filho. |
| COMMENT_NODE | o nó é um nó comment. |
| DOCUMENT_FRAGMENT_NODE | o nó é um nó DocumentFragment. |
| DOCUMENT_NODE | o nó é um documento. |
| DOCUMENT_POSITION_CONTAINED_BY | Definir quando outro é descendente de nó. |
| DOCUMENT_POSITION_CONTAINS | Definir quando outro é um ancestral do nó. |
| DOCUMENT_POSITION_DISCONNECTED | Defina quando o nó e outros não estão na mesma árvore. |
| DOCUMENT_POSITION_FOLLOWING | Defina quando outro estiver seguindo o nó. |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | Definir quando outro é o nó anterior. |
| DOCUMENT_TYPE_NODE | o nó é um doctype. |
| ELEMENT_NODE | o nó é um elemento. |
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
A propriedade somente |
| first |
Retorna o primeiro filho que é um elemento e nulo caso contrário. |
| fonts | |
| fullscreen |
Retorna o elemento fullscreen do documento. |
| is |
A propriedade somente |
| last |
A propriedade somente |
| last |
Retorna o último filho que é um elemento e nulo caso contrário. |
| next |
A propriedade somente |
| node |
A propriedade somente |
| node |
A propriedade somente |
| node |
A |
| NOTATION_NODE | |
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| 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 | |
| onlostpointercapture | |
| onmousedown | |
| onmouseenter | |
| onmouseleave | |
| onmousemove | |
| onmouseout | |
| onmouseover | |
| onmouseup | |
| onpaste | |
| onpause | |
| onplay | |
| onplaying | |
| onpointercancel | |
| onpointerdown | |
| onpointerenter | |
| onpointerleave | |
| onpointermove | |
| onpointerout | |
| onpointerover | |
| onpointerrawupdate | Disponível somente em contextos seguros. |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| 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 | |
| parent |
A propriedade somente |
| parent |
A propriedade somente |
| picture |
|
| pointer |
|
| previous |
A propriedade somente |
| PROCESSING_INSTRUCTION_NODE | o nó é um nó ProcessingInstruction. |
| style |
|
| TEXT_NODE | o nó é um nó de texto. |
Métodos
| add |
|
| add |
O |
| adopt |
|
| capture |
|
| caret |
O |
| caret |
|
| clear() | O |
| close() | O |
| create |
O |
| create |
O |
| create |
|
| create |
|
| create |
Cria um novo DocumentFragment vazio no qual os nós DOM podem ser adicionados para criar uma árvore DOM fora da tela. |
| create |
|
| create |
Em um documento HTML, o |
| create |
|
| create |
|
| create |
Cria um elemento com o URI do namespace especificado e o nome qualificado. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
Cria um evento do tipo especificado. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
O |
| create |
|
| create |
O |
| create |
Cria um novo nó de Texto. |
| create |
O |
| exec |
O |
| exit |
O método |
| exit |
O |
| exit |
O |
| get |
Retorna o primeiro elemento dentro dos descendentes do nó cuja ID é elementId. |
| get |
O |
| get |
O |
| get |
|
| get |
O |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
Retorna uma lista de elementos com o nome da marca especificado que pertence ao namespace fornecido. |
| get |
|
| get |
|
| get |
O |
| has |
O |
| has |
O |
| import |
O método do |
| open(string | URL, string, string) | |
| open(string, string) | O |
| query |
O |
| query |
|
| query |
O |
| query |
O |
| query |
|
| release |
|
| remove |
|
| remove |
O |
| request |
O |
| start |
O |
| write(string[]) | O |
| writeln(string[]) | O |
Métodos herdados
| append((string | Node)[]) | Insere nós após o último filho do nó, substituindo cadeias de caracteres em nós por nós de texto equivalentes. Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas. |
| append |
O |
| clone |
O |
| compare |
O |
| contains(Node | null) | O |
| create |
|
| create |
|
| dispatch |
O |
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
O |
| has |
O |
| insert |
O |
| is |
O |
| is |
O |
| is |
O |
| lookup |
O |
| lookup |
O |
| normalize() | O |
| prepend((string | Node)[]) | Insere nós antes do primeiro filho do nó, substituindo cadeias de caracteres em nós por nós de texto equivalentes. Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas. |
| query |
|
| query |
Retorna o primeiro elemento que é um descendente de nó que corresponde aos seletores. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Retorna todos os descendentes de elementos de nó que correspondem aos seletores. |
| query |
|
| query |
|
| query |
|
| remove |
O |
| replace |
O |
| replace |
Substitua todos os filhos do nó por nós, substituindo cadeias de caracteres em nós por nós de texto equivalentes. Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas. |
Detalhes da propriedade
alinkColor
Retorna ou define a cor de um link ativo no corpo do documento.
alinkColor: string
Valor da propriedade
string
all
A propriedade somente all leitura da interface document retorna um HTMLAllCollection enraizado no nó do documento.
all: HTMLAllCollection
Valor da propriedade
HTMLAllCollection
anchors
A anchors propriedade somente leitura do An HTMLCollection.
anchors: HTMLCollectionOf<HTMLAnchorElement>
Valor da propriedade
HTMLCollectionOf<HTMLAnchorElement>
applets
A applets propriedade do Documento retorna um HTMLCollection vazio.
applets: HTMLCollection
Valor da propriedade
HTMLCollection
bgColor
A propriedade preterida bgColor obtém ou define a cor da tela de fundo do documento atual.
bgColor: string
Valor da propriedade
string
body
A Document.body propriedade representa o null se nenhum elemento desse tipo existir.
body: HTMLElement
Valor da propriedade
HTMLElement
characterSet
A Document.characterSet propriedade somente leitura retorna a codificação de caracteres do documento com o qual está atualmente renderizada.
characterSet: string
Valor da propriedade
string
charset
charset: string
Valor da propriedade
string
compatMode
A Document.compatMode propriedade somente leitura indica se o documento é renderizado no modo Quirks ou no modo Standards.
compatMode: string
Valor da propriedade
string
contentType
A Document.contentType propriedade somente leitura retorna o tipo MIME no qual o documento está sendo renderizado.
contentType: string
Valor da propriedade
string
cookie
A propriedade cookie Document permite que você leia e escreva cookies associados ao documento.
cookie: string
Valor da propriedade
string
currentScript
A Document.currentScript propriedade retorna o elemento script cujo script está sendo processado no momento e não é um módulo JavaScript.
currentScript: HTMLOrSVGScriptElement | null
Valor da propriedade
HTMLOrSVGScriptElement | null
defaultView
Em navegadores, document.defaultView retorna a propriedade This é somente leitura.
defaultView: (Window & typeof globalThis) | null
Valor da propriedade
(Window & typeof globalThis) | null
designMode
document.designMode controla se o documento inteiro é editável.
designMode: string
Valor da propriedade
string
dir
A Document.dir propriedade é uma cadeia de caracteres que representa a direcionalidade do texto do documento, seja da esquerda para a direita (padrão) ou da direita para a esquerda.
dir: string
Valor da propriedade
string
doctype
A doctype propriedade somente leitura da interface document é um objeto DocumentType que representa o Doctype associado ao documento atual.
doctype: DocumentType | null
Valor da propriedade
DocumentType | null
documentElement
A documentElement propriedade somente leitura da interface document retorna o exemplo, o elemento html para documentos HTML).
documentElement: HTMLElement
Valor da propriedade
HTMLElement
documentURI
A documentURI propriedade somente leitura da cadeia de caracteres A.
documentURI: string
Valor da propriedade
string
domain
A domain propriedade da interface do Documento obtém/define a parte de domínio da origem do documento atual, conforme usado pela política de mesma origem.
domain: string
Valor da propriedade
string
embeds
A embeds propriedade somente leitura do An HTMLCollection.
embeds: HTMLCollectionOf<HTMLEmbedElement>
Valor da propriedade
HTMLCollectionOf<HTMLEmbedElement>
fgColor
fgColor obtém/define a cor do primeiro plano ou a cor do texto do documento atual.
fgColor: string
Valor da propriedade
string
forms
A forms propriedade somente leitura da interface document retorna um HTMLCollection listando todos os elementos de formulário contidos no documento.
forms: HTMLCollectionOf<HTMLFormElement>
Valor da propriedade
HTMLCollectionOf<HTMLFormElement>
fragmentDirective
A fragmentDirective propriedade somente leitura da interface document retorna o FragmentDirective para o documento atual.
fragmentDirective: FragmentDirective
Valor da propriedade
FragmentDirective
fullscreen
A propriedade somente leitura da fullscreen interface do Documento obsoleta informa se o documento está ou não exibindo conteúdo no modo de tela inteira.
fullscreen: boolean
Valor da propriedade
boolean
fullscreenEnabled
A propriedade somente fullscreenEnabled leitura na interface do Documento indica se o modo de tela inteira está disponível ou não.
fullscreenEnabled: boolean
Valor da propriedade
boolean
head
A head propriedade somente leitura da interface document retorna o elemento principal do documento atual.
head: HTMLHeadElement
Valor da propriedade
HTMLHeadElement
hidden
A Document.hidden propriedade somente leitura retorna um valor booliano que indica se a página é considerada oculta ou não.
hidden: boolean
Valor da propriedade
boolean
images
A images propriedade somente leitura da interface document retorna uma coleção das imagens no documento HTML atual.
images: HTMLCollectionOf<HTMLImageElement>
Valor da propriedade
HTMLCollectionOf<HTMLImageElement>
implementation
A Document.implementation propriedade retorna um objeto A DOMImplementation.
implementation: DOMImplementation
Valor da propriedade
DOMImplementation
inputEncoding
inputEncoding: string
Valor da propriedade
string
lastModified
A lastModified propriedade da interface do Documento retorna uma cadeia de caracteres que contém a data e a hora local em que o documento atual foi modificado pela última vez.
lastModified: string
Valor da propriedade
string
linkColor
A Document.linkColor propriedade obtém/define a cor dos links dentro do documento.
linkColor: string
Valor da propriedade
string
links
A links propriedade somente leitura da interface document retorna uma coleção de todos os elementos de área e um elemento em um documento com um valor para o atributo href.
links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
Valor da propriedade
HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
location
A Document.location propriedade somente leitura retorna um e fornece métodos para alterar essa URL e carregar outra URL.
Location location
Valor da propriedade
Location
mozCancelFullScreen
mozCancelFullScreen: any
Valor da propriedade
any
msExitFullscreen
msExitFullscreen: any
Valor da propriedade
any
onfullscreenchange
onfullscreenchange: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
onfullscreenerror
onfullscreenerror: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
onpointerlockchange
onpointerlockchange: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
onpointerlockerror
onpointerlockerror: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
onreadystatechange
onreadystatechange: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
onvisibilitychange
onvisibilitychange: (this: Document, ev: Event) => any | null
Valor da propriedade
(this: Document, ev: Event) => any | null
ownerDocument
A propriedade somente ownerDocument leitura da interface do Nó retorna o objeto de documento de nível superior do nó.
ownerDocument: null
Valor da propriedade
null
pictureInPictureEnabled
A propriedade somente pictureInPictureEnabled leitura do disponível.
pictureInPictureEnabled: boolean
Valor da propriedade
boolean
plugins
A plugins propriedade somente leitura do HTMLEmbedElements que contém um ou mais HTMLEmbedElements que representam um HTMLCollection.
plugins: HTMLCollectionOf<HTMLEmbedElement>
Valor da propriedade
HTMLCollectionOf<HTMLEmbedElement>
readyState
A Document.readyState propriedade descreve o estado de carregamento do documento.
readyState: DocumentReadyState
Valor da propriedade
DocumentReadyState
referrer
A Document.referrer propriedade retorna o URI da página vinculada a esta página.
referrer: string
Valor da propriedade
string
rootElement
Document.rootElement retornará o Elemento que é o elemento raiz do documento se for um documento.
rootElement: SVGSVGElement | null
Valor da propriedade
SVGSVGElement | null
scripts
A scripts propriedade da interface do Documento retorna uma lista dos elementos de script no documento.
scripts: HTMLCollectionOf<HTMLScriptElement>
Valor da propriedade
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
A scrollingElement propriedade somente leitura dos rolamentos do documento.
scrollingElement: Element | null
Valor da propriedade
Element | null
textContent
timeline
A timeline propriedade readonly da interface document representa a linha do tempo padrão do documento atual.
timeline: DocumentTimeline
Valor da propriedade
DocumentTimeline
title
A document.title propriedade obtém ou define o título atual do documento.
title: string
Valor da propriedade
string
URL
A URL propriedade somente leitura da interface do documento retorna o local do documento como uma cadeia de caracteres.
URL: string
Valor da propriedade
string
visibilityState
A Document.visibilityState propriedade somente leitura retorna a visibilidade do documento.
visibilityState: DocumentVisibilityState
Valor da propriedade
DocumentVisibilityState
vlinkColor
A Document.vlinkColor propriedade obtém/define a cor dos links que o usuário visitou no documento.
vlinkColor: string
Valor da propriedade
string
webkitExitFullscreen
webkitExitFullscreen: void
Valor da propriedade
void
Detalhes das propriedades herdadas
activeElement
Retorna o elemento mais profundo no documento por meio do qual ou para quais eventos principais estão sendo roteado. Este é, aproximadamente, o elemento focado no documento.
Para fins dessa API, quando um contexto de navegação filho é focado, seu contêiner é focado no contexto de navegação pai. Por exemplo, se o usuário mover o foco para um controle de texto em um iframe, o iframe será o elemento retornado pela API activeElement no documento de nó do iframe.
Da mesma forma, quando o elemento focalizado estiver em uma árvore de nó diferente de documentOrShadowRoot, o elemento retornado será o host localizado na mesma árvore de nó que documentOrShadowRoot se documentOrShadowRoot for um ancestral inclusivo que inclui sombras do elemento focalizado e nulo, caso contrário.
activeElement: Element | null
Valor da propriedade
Element | null
herdado de DocumentOrShadowRoot.activeElement
adoptedStyleSheets
adoptedStyleSheets: CSSStyleSheet[]
Valor da propriedade
CSSStyleSheet[]
Herdado de DocumentOrShadowRoot.adoptedStyleSheets
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Valor da propriedade
2
herdado de Node.ATTRIBUTE_NODE
baseURI
A propriedade somente baseURI leitura da interface do Nó retorna a URL base absoluta do documento que contém o nó.
baseURI: string
Valor da propriedade
string
herdado de Node.baseURI
CDATA_SECTION_NODE
o nó é um nó CDATASection.
CDATA_SECTION_NODE: 4
Valor da propriedade
4
herdado de Node.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Valor da propriedade
number
herdado de ParentNode.childElementCount
childNodes
A propriedade somente childNodes leitura da interface do Nó retorna um índice 0ao vivo do primeiro nó filho.
childNodes: NodeListOf<ChildNode>
Valor da propriedade
NodeListOf<ChildNode>
herdado de Node.childNodes
children
Retorna os elementos filho.
children: HTMLCollection
Valor da propriedade
HTMLCollection
herdado de ParentNode.children
COMMENT_NODE
o nó é um nó comment.
COMMENT_NODE: 8
Valor da propriedade
8
herdado de Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
o nó é um nó DocumentFragment.
DOCUMENT_FRAGMENT_NODE: 11
Valor da propriedade
11
herdado de Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
o nó é um documento.
DOCUMENT_NODE: 9
Valor da propriedade
9
herdado de Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Definir quando outro é descendente de nó.
DOCUMENT_POSITION_CONTAINED_BY: 16
Valor da propriedade
16
herdado de Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Definir quando outro é um ancestral do nó.
DOCUMENT_POSITION_CONTAINS: 8
Valor da propriedade
8
herdado de Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Defina quando o nó e outros não estão na mesma árvore.
DOCUMENT_POSITION_DISCONNECTED: 1
Valor da propriedade
1
herdado de Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Defina quando outro estiver seguindo o nó.
DOCUMENT_POSITION_FOLLOWING: 4
Valor da propriedade
4
herdado de Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Valor da propriedade
32
herdado de Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Definir quando outro é o nó anterior.
DOCUMENT_POSITION_PRECEDING: 2
Valor da propriedade
2
herdado de Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
o nó é um doctype.
DOCUMENT_TYPE_NODE: 10
Valor da propriedade
10
herdado de Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
o nó é um elemento.
ELEMENT_NODE: 1
Valor da propriedade
1
herdado de Node.ELEMENT_NODE
ENTITY_NODE
ENTITY_NODE: 6
Valor da propriedade
6
herdado de Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Valor da propriedade
5
herdado de Node.ENTITY_REFERENCE_NODE
firstChild
A propriedade somente firstChild leitura da interface do Nó retorna o primeiro filho do nó na árvore ou null se o nó não tem filhos.
firstChild: ChildNode | null
Valor da propriedade
ChildNode | null
herdado de Node.firstChild
firstElementChild
Retorna o primeiro filho que é um elemento e nulo caso contrário.
firstElementChild: Element | null
Valor da propriedade
Element | null
herdado de ParentNode.firstElementChild
fonts
fonts: FontFaceSet
Valor da propriedade
FontFaceSet
Herdado de FontFaceSource.fonts
fullscreenElement
Retorna o elemento fullscreen do documento.
fullscreenElement: Element | null
Valor da propriedade
Element | null
herdado de DocumentOrShadowRoot.fullscreenElement
isConnected
A propriedade somente isConnected leitura da interface do Nó retorna um booliano que indica se o nó está conectado (direta ou indiretamente) a um objeto Document.
isConnected: boolean
Valor da propriedade
boolean
Herdado de Node.isConnected
lastChild
A propriedade somente lastChild leitura da interface do Nó retorna o último filho do nó ou null se não houver nós filho.
lastChild: ChildNode | null
Valor da propriedade
ChildNode | null
Herdado de Node.lastChild
lastElementChild
Retorna o último filho que é um elemento e nulo caso contrário.
lastElementChild: Element | null
Valor da propriedade
Element | null
herdado de ParentNode.lastElementChild
nextSibling
A propriedade somente nextSibling leitura da interface do Nó retorna o nó imediatamente após o especificado no Node.childNodes do pai ou retorna null se o nó especificado for o último filho no elemento pai.
nextSibling: ChildNode | null
Valor da propriedade
ChildNode | null
Herdado de Node.nextSibling
nodeName
A propriedade somente nodeName leitura de Node retorna o nome do nó atual como uma cadeia de caracteres.
nodeName: string
Valor da propriedade
string
Herdado de Node.nodeName
nodeType
A propriedade somente nodeType leitura de uma interface node é um inteiro que identifica o que é o nó.
nodeType: number
Valor da propriedade
number
Herdado de Node.nodeType
nodeValue
A nodeValue propriedade da interface node retorna ou define o valor do nó atual.
nodeValue: string | null
Valor da propriedade
string | null
Herdado de Node.nodeValue
NOTATION_NODE
NOTATION_NODE: 12
Valor da propriedade
12
herdado de Node.NOTATION_NODE
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Herdado de GlobalEventHandlers.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Herdado de GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Herdado de GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Herdado de GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Herdado de GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: InputEvent) => any | null
Herdado de GlobalEventHandlers.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Herdado de GlobalEventHandlers.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Herdado de GlobalEventHandlers.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Herdado de GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Herdado de GlobalEventHandlers.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Herdado de GlobalEventHandlers.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Herdado de GlobalEventHandlers.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
herdado de GlobalEventHandlers.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
herdado de GlobalEventHandlers.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
herdado de GlobalEventHandlers.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Herdado de GlobalEventHandlers.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Herdado de GlobalEventHandlers.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Herdado de GlobalEventHandlers.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
herdado de GlobalEventHandlers.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onended
onerror
onerror: OnErrorEventHandler
Valor da propriedade
OnErrorEventHandler
herdado de GlobalEventHandlers.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Herdado de GlobalEventHandlers.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Herdado de GlobalEventHandlers.onformdata
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
herdado de GlobalEventHandlers.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Herdado de GlobalEventHandlers.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Herdado de GlobalEventHandlers.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Herdado de GlobalEventHandlers.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
herdado de GlobalEventHandlers.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Herdado de GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Herdado de GlobalEventHandlers.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
herdado de GlobalEventHandlers.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Herdado de GlobalEventHandlers.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
herdado de GlobalEventHandlers.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Herdado de GlobalEventHandlers.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Herdado de GlobalEventHandlers.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
herdado de GlobalEventHandlers.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
herdado de GlobalEventHandlers.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Herdado de GlobalEventHandlers.onpointerover
onpointerrawupdate
Disponível somente em contextos seguros.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
herdado de GlobalEventHandlers.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Herdado de GlobalEventHandlers.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Herdado de GlobalEventHandlers.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Herdado de GlobalEventHandlers.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Herdado de GlobalEventHandlers.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
herdado de GlobalEventHandlers.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Herdado de GlobalEventHandlers.onggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Herdado de GlobalEventHandlers.onuchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Herdado de GlobalEventHandlers.onuchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Herdado de GlobalEventHandlers.onuchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Herdado de GlobalEventHandlers.onuchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Herdado de GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Herdado de GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Herdado de GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Herdado de GlobalEventHandlers.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
herdado de GlobalEventHandlers.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: Event) => any | null
Herdado de GlobalEventHandlers.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Valor da propriedade
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
Herdado de GlobalEventHandlers.onwheel
parentElement
A propriedade somente parentElement leitura da interface node retorna o elemento pai do nó DOM ou null se o nó não tem pai ou seu pai não é um elemento DOM.
parentElement: HTMLElement | null
Valor da propriedade
HTMLElement | null
Herdado de Node.parentElement
parentNode
A propriedade somente parentNode leitura da interface do Nó retorna o pai do nó especificado na árvore DOM.
parentNode: ParentNode | null
Valor da propriedade
ParentNode | null
Herdado de Node.parentNode
pictureInPictureElement
pictureInPictureElement: Element | null
Valor da propriedade
Element | null
herdado de DocumentOrShadowRoot.pictureInPictureElement
pointerLockElement
pointerLockElement: Element | null
Valor da propriedade
Element | null
Herdado de DocumentOrShadowRoot.pointerLockElement
previousSibling
A propriedade somente previousSibling leitura da interface do Nó retorna o nó imediatamente anterior ao especificado em seu pai ou null se o nó especificado é o primeiro nessa lista.
previousSibling: ChildNode | null
Valor da propriedade
ChildNode | null
herdado de Node.previousSibling
PROCESSING_INSTRUCTION_NODE
o nó é um nó ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: 7
Valor da propriedade
7
herdado de Node.PROCESSING_INSTRUCTION_NODE
styleSheets
styleSheets: StyleSheetList
Valor da propriedade
StyleSheetList
Herdado de DocumentOrShadowRoot.styleSheets
TEXT_NODE
o nó é um nó de texto.
TEXT_NODE: 3
Valor da propriedade
3
herdado de Node.TEXT_NODE
Detalhes do método
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parâmetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)
O addEventListener() método da interface EventTarget configura uma função que será chamada sempre que o evento especificado for entregue ao destino.
function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parâmetros
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
adoptNode<T>(T)
Document.adoptNode() transfere um nó/dom de outro Documento para o documento do método.
function adoptNode<T>(node: T): T
Parâmetros
- node
-
T
Retornos
T
captureEvents()
Aviso
Essa API foi preterida.
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
O caretPositionFromPoint() método da interface document retorna um objeto CaretPosition, contendo o nó DOM, juntamente com o deslocamento de caracteres do cursor e do cursor dentro desse nó.
function caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null
Parâmetros
- x
-
number
- y
-
number
- options
-
CaretPositionFromPointOptions
Retornos
CaretPosition | null
caretRangeFromPoint(number, number)
Aviso
Essa API foi preterida.
function caretRangeFromPoint(x: number, y: number): Range | null
Parâmetros
- x
-
number
- y
-
number
Retornos
Range | null
clear()
O Document.clear() método não faz nada, mas não gera nenhum erro.
function clear()
close()
O Document.close() método termina de gravar em um documento, aberto com Document.open().
function close()
createAttribute(string)
O Document.createAttribute() método cria um novo nó de atributo e o retorna.
function createAttribute(localName: string): Attr
Parâmetros
- localName
-
string
Retornos
Attr
createAttributeNS(string | null, string)
O Document.createAttributeNS() método cria um novo nó de atributo com o URI do namespace especificado e o nome qualificado e o retorna.
function createAttributeNS(namespace: string | null, qualifiedName: string): Attr
Parâmetros
- namespace
-
string | null
- qualifiedName
-
string
Retornos
Attr
createCDATASection(string)
createCDATASection() cria um novo nó de seção CDATA e o retorna.
function createCDATASection(data: string): CDATASection
Parâmetros
- data
-
string
Retornos
CDATASection
createComment(string)
createComment() cria um novo nó de comentário e o retorna.
function createComment(data: string): Comment
Parâmetros
- data
-
string
Retornos
Comment
createDocumentFragment()
Cria um novo DocumentFragment vazio no qual os nós DOM podem ser adicionados para criar uma árvore DOM fora da tela.
function createDocumentFragment(): DocumentFragment
Retornos
DocumentFragment
createElement(string, ElementCreationOptions)
function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement
Parâmetros
- tagName
-
string
- options
-
ElementCreationOptions
Retornos
HTMLElement
createElement<K>(K, ElementCreationOptions)
Em um documento HTML, o document.createElement() método cria o elemento HTML especificado por localName, ou um HTMLUnknownElement, se localName não for reconhecido.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]
Parâmetros
- tagName
-
K
- options
-
ElementCreationOptions
Retornos
HTMLElementTagNameMap[K]
createElement<K>(K, ElementCreationOptions)
Aviso
Essa API foi preterida.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]
Parâmetros
- tagName
-
K
- options
-
ElementCreationOptions
Retornos
HTMLElementDeprecatedTagNameMap[K]
createElementNS("http://www.w3.org/1998/Math/MathML", string)
function createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement
Parâmetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
string
Retornos
MathMLElement
createElementNS("http://www.w3.org/1999/xhtml", string)
Cria um elemento com o URI do namespace especificado e o nome qualificado.
function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
Parâmetros
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- qualifiedName
-
string
Retornos
HTMLElement
createElementNS("http://www.w3.org/2000/svg", string)
function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
Parâmetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
string
Retornos
SVGElement
createElementNS(string | null, string, ElementCreationOptions)
function createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element
Parâmetros
- namespaceURI
-
string | null
- qualifiedName
-
string
- options
-
ElementCreationOptions
Retornos
Element
createElementNS(string | null, string, string | ElementCreationOptions)
function createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element
Parâmetros
- namespace
-
string | null
- qualifiedName
-
string
- options
-
string | ElementCreationOptions
Retornos
Element
createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]
Parâmetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
K
Retornos
MathMLElementTagNameMap[K]
createElementNS<K>("http://www.w3.org/2000/svg", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]
Parâmetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
K
Retornos
SVGElementTagNameMap[K]
createEvent("AnimationEvent")
Cria um evento do tipo especificado.
function createEvent(eventInterface: "AnimationEvent"): AnimationEvent
Parâmetros
- eventInterface
-
"AnimationEvent"
Retornos
AnimationEvent
createEvent("AnimationPlaybackEvent")
function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent
Parâmetros
- eventInterface
-
"AnimationPlaybackEvent"
Retornos
AnimationPlaybackEvent
createEvent("AudioProcessingEvent")
function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent
Parâmetros
- eventInterface
-
"AudioProcessingEvent"
Retornos
AudioProcessingEvent
createEvent("BeforeUnloadEvent")
function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent
Parâmetros
- eventInterface
-
"BeforeUnloadEvent"
Retornos
BeforeUnloadEvent
createEvent("BlobEvent")
function createEvent(eventInterface: "BlobEvent"): BlobEvent
Parâmetros
- eventInterface
-
"BlobEvent"
Retornos
BlobEvent
createEvent("ClipboardEvent")
function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent
Parâmetros
- eventInterface
-
"ClipboardEvent"
Retornos
ClipboardEvent
createEvent("CloseEvent")
function createEvent(eventInterface: "CloseEvent"): CloseEvent
Parâmetros
- eventInterface
-
"CloseEvent"
Retornos
CloseEvent
createEvent("CompositionEvent")
function createEvent(eventInterface: "CompositionEvent"): CompositionEvent
Parâmetros
- eventInterface
-
"CompositionEvent"
Retornos
CompositionEvent
createEvent("ContentVisibilityAutoStateChangeEvent")
function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent
Parâmetros
- eventInterface
-
"ContentVisibilityAutoStateChangeEvent"
Retornos
ContentVisibilityAutoStateChangeEvent
createEvent("CookieChangeEvent")
function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent
Parâmetros
- eventInterface
-
"CookieChangeEvent"
Retornos
CookieChangeEvent
createEvent("CustomEvent")
function createEvent(eventInterface: "CustomEvent"): CustomEvent
Parâmetros
- eventInterface
-
"CustomEvent"
Retornos
CustomEvent
createEvent("DeviceMotionEvent")
function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent
Parâmetros
- eventInterface
-
"DeviceMotionEvent"
Retornos
DeviceMotionEvent
createEvent("DeviceOrientationEvent")
function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent
Parâmetros
- eventInterface
-
"DeviceOrientationEvent"
Retornos
DeviceOrientationEvent
createEvent("DragEvent")
function createEvent(eventInterface: "DragEvent"): DragEvent
Parâmetros
- eventInterface
-
"DragEvent"
Retornos
DragEvent
createEvent("ErrorEvent")
function createEvent(eventInterface: "ErrorEvent"): ErrorEvent
Parâmetros
- eventInterface
-
"ErrorEvent"
Retornos
ErrorEvent
createEvent("Event")
function createEvent(eventInterface: "Event"): Event
Parâmetros
- eventInterface
-
"Event"
Retornos
Event
createEvent("Events")
function createEvent(eventInterface: "Events"): Event
Parâmetros
- eventInterface
-
"Events"
Retornos
Event
createEvent("FocusEvent")
function createEvent(eventInterface: "FocusEvent"): FocusEvent
Parâmetros
- eventInterface
-
"FocusEvent"
Retornos
FocusEvent
createEvent("FontFaceSetLoadEvent")
function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent
Parâmetros
- eventInterface
-
"FontFaceSetLoadEvent"
Retornos
FontFaceSetLoadEvent
createEvent("FormDataEvent")
function createEvent(eventInterface: "FormDataEvent"): FormDataEvent
Parâmetros
- eventInterface
-
"FormDataEvent"
Retornos
FormDataEvent
createEvent("GamepadEvent")
function createEvent(eventInterface: "GamepadEvent"): GamepadEvent
Parâmetros
- eventInterface
-
"GamepadEvent"
Retornos
GamepadEvent
createEvent("HashChangeEvent")
function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent
Parâmetros
- eventInterface
-
"HashChangeEvent"
Retornos
HashChangeEvent
createEvent("IDBVersionChangeEvent")
function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent
Parâmetros
- eventInterface
-
"IDBVersionChangeEvent"
Retornos
IDBVersionChangeEvent
createEvent("InputEvent")
function createEvent(eventInterface: "InputEvent"): InputEvent
Parâmetros
- eventInterface
-
"InputEvent"
Retornos
InputEvent
createEvent("KeyboardEvent")
function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent
Parâmetros
- eventInterface
-
"KeyboardEvent"
Retornos
KeyboardEvent
createEvent("MediaEncryptedEvent")
function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent
Parâmetros
- eventInterface
-
"MediaEncryptedEvent"
Retornos
MediaEncryptedEvent
createEvent("MediaKeyMessageEvent")
function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent
Parâmetros
- eventInterface
-
"MediaKeyMessageEvent"
Retornos
MediaKeyMessageEvent
createEvent("MediaQueryListEvent")
function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent
Parâmetros
- eventInterface
-
"MediaQueryListEvent"
Retornos
MediaQueryListEvent
createEvent("MediaStreamTrackEvent")
function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent
Parâmetros
- eventInterface
-
"MediaStreamTrackEvent"
Retornos
MediaStreamTrackEvent
createEvent("MessageEvent")
function createEvent(eventInterface: "MessageEvent"): MessageEvent
Parâmetros
- eventInterface
-
"MessageEvent"
Retornos
MessageEvent
createEvent("MIDIConnectionEvent")
function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent
Parâmetros
- eventInterface
-
"MIDIConnectionEvent"
Retornos
MIDIConnectionEvent
createEvent("MIDIMessageEvent")
function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent
Parâmetros
- eventInterface
-
"MIDIMessageEvent"
Retornos
MIDIMessageEvent
createEvent("MouseEvent")
function createEvent(eventInterface: "MouseEvent"): MouseEvent
Parâmetros
- eventInterface
-
"MouseEvent"
Retornos
MouseEvent
createEvent("MouseEvents")
function createEvent(eventInterface: "MouseEvents"): MouseEvent
Parâmetros
- eventInterface
-
"MouseEvents"
Retornos
MouseEvent
createEvent("OfflineAudioCompletionEvent")
function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent
Parâmetros
- eventInterface
-
"OfflineAudioCompletionEvent"
Retornos
OfflineAudioCompletionEvent
createEvent("PageRevealEvent")
function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent
Parâmetros
- eventInterface
-
"PageRevealEvent"
Retornos
PageRevealEvent
createEvent("PageSwapEvent")
function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent
Parâmetros
- eventInterface
-
"PageSwapEvent"
Retornos
PageSwapEvent
createEvent("PageTransitionEvent")
function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent
Parâmetros
- eventInterface
-
"PageTransitionEvent"
Retornos
PageTransitionEvent
createEvent("PaymentMethodChangeEvent")
function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent
Parâmetros
- eventInterface
-
"PaymentMethodChangeEvent"
Retornos
PaymentMethodChangeEvent
createEvent("PaymentRequestUpdateEvent")
function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent
Parâmetros
- eventInterface
-
"PaymentRequestUpdateEvent"
Retornos
PaymentRequestUpdateEvent
createEvent("PictureInPictureEvent")
function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent
Parâmetros
- eventInterface
-
"PictureInPictureEvent"
Retornos
PictureInPictureEvent
createEvent("PointerEvent")
function createEvent(eventInterface: "PointerEvent"): PointerEvent
Parâmetros
- eventInterface
-
"PointerEvent"
Retornos
PointerEvent
createEvent("PopStateEvent")
function createEvent(eventInterface: "PopStateEvent"): PopStateEvent
Parâmetros
- eventInterface
-
"PopStateEvent"
Retornos
PopStateEvent
createEvent("ProgressEvent")
function createEvent(eventInterface: "ProgressEvent"): ProgressEvent
Parâmetros
- eventInterface
-
"ProgressEvent"
Retornos
ProgressEvent
createEvent("PromiseRejectionEvent")
function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent
Parâmetros
- eventInterface
-
"PromiseRejectionEvent"
Retornos
PromiseRejectionEvent
createEvent("RTCDataChannelEvent")
function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent
Parâmetros
- eventInterface
-
"RTCDataChannelEvent"
Retornos
RTCDataChannelEvent
createEvent("RTCDTMFToneChangeEvent")
function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent
Parâmetros
- eventInterface
-
"RTCDTMFToneChangeEvent"
Retornos
RTCDTMFToneChangeEvent
createEvent("RTCErrorEvent")
function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent
Parâmetros
- eventInterface
-
"RTCErrorEvent"
Retornos
RTCErrorEvent
createEvent("RTCPeerConnectionIceErrorEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent
Parâmetros
- eventInterface
-
"RTCPeerConnectionIceErrorEvent"
Retornos
RTCPeerConnectionIceErrorEvent
createEvent("RTCPeerConnectionIceEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent
Parâmetros
- eventInterface
-
"RTCPeerConnectionIceEvent"
Retornos
RTCPeerConnectionIceEvent
createEvent("RTCTrackEvent")
function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent
Parâmetros
- eventInterface
-
"RTCTrackEvent"
Retornos
RTCTrackEvent
createEvent("SecurityPolicyViolationEvent")
function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent
Parâmetros
- eventInterface
-
"SecurityPolicyViolationEvent"
Retornos
SecurityPolicyViolationEvent
createEvent("SpeechSynthesisErrorEvent")
function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent
Parâmetros
- eventInterface
-
"SpeechSynthesisErrorEvent"
Retornos
SpeechSynthesisErrorEvent
createEvent("SpeechSynthesisEvent")
function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent
Parâmetros
- eventInterface
-
"SpeechSynthesisEvent"
Retornos
SpeechSynthesisEvent
createEvent("StorageEvent")
function createEvent(eventInterface: "StorageEvent"): StorageEvent
Parâmetros
- eventInterface
-
"StorageEvent"
Retornos
StorageEvent
createEvent("SubmitEvent")
function createEvent(eventInterface: "SubmitEvent"): SubmitEvent
Parâmetros
- eventInterface
-
"SubmitEvent"
Retornos
SubmitEvent
createEvent("TextEvent")
function createEvent(eventInterface: "TextEvent"): TextEvent
Parâmetros
- eventInterface
-
"TextEvent"
Retornos
TextEvent
createEvent("ToggleEvent")
function createEvent(eventInterface: "ToggleEvent"): ToggleEvent
Parâmetros
- eventInterface
-
"ToggleEvent"
Retornos
ToggleEvent
createEvent("TouchEvent")
function createEvent(eventInterface: "TouchEvent"): TouchEvent
Parâmetros
- eventInterface
-
"TouchEvent"
Retornos
TouchEvent
createEvent("TrackEvent")
function createEvent(eventInterface: "TrackEvent"): TrackEvent
Parâmetros
- eventInterface
-
"TrackEvent"
Retornos
TrackEvent
createEvent("TransitionEvent")
function createEvent(eventInterface: "TransitionEvent"): TransitionEvent
Parâmetros
- eventInterface
-
"TransitionEvent"
Retornos
TransitionEvent
createEvent("UIEvent")
function createEvent(eventInterface: "UIEvent"): UIEvent
Parâmetros
- eventInterface
-
"UIEvent"
Retornos
UIEvent
createEvent("UIEvents")
function createEvent(eventInterface: "UIEvents"): UIEvent
Parâmetros
- eventInterface
-
"UIEvents"
Retornos
UIEvent
createEvent("WebGLContextEvent")
function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent
Parâmetros
- eventInterface
-
"WebGLContextEvent"
Retornos
WebGLContextEvent
createEvent("WheelEvent")
function createEvent(eventInterface: "WheelEvent"): WheelEvent
Parâmetros
- eventInterface
-
"WheelEvent"
Retornos
WheelEvent
createEvent(string)
function createEvent(eventInterface: string): Event
Parâmetros
- eventInterface
-
string
Retornos
Event
createNodeIterator(Node, number, NodeFilter | null)
O Document.createNodeIterator() método retorna um novo NodeIterator objeto.
function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator
Parâmetros
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Retornos
NodeIterator
createProcessingInstruction(string, string)
createProcessingInstruction() gera um novo nó de instrução de processamento e o retorna.
function createProcessingInstruction(target: string, data: string): ProcessingInstruction
Parâmetros
- target
-
string
- data
-
string
Retornos
ProcessingInstruction
createRange()
O Document.createRange() método retorna um novo js-nolint createRange() None.
function createRange(): Range
Retornos
Range
createTextNode(string)
Cria um novo nó de Texto.
function createTextNode(data: string): Text
Parâmetros
- data
-
string
Retornos
Text
createTreeWalker(Node, number, NodeFilter | null)
O Document.createTreeWalker() método criador retorna um objeto TreeWalker recém-criado.
function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker
Parâmetros
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Retornos
TreeWalker
execCommand(string, boolean, string)
O execCommand método implementa vários comandos diferentes.
function execCommand(commandId: string, showUI?: boolean, value?: string): boolean
Parâmetros
- commandId
-
string
- showUI
-
boolean
- value
-
string
Retornos
boolean
exitFullscreen()
O método exitFullscreen() Document solicita que o elemento neste documento que está sendo apresentado no modo de tela inteira seja retirado do modo de tela inteira, restaurando o estado anterior da tela.
function exitFullscreen(): Promise<void>
Retornos
Promise<void>
exitPictureInPicture()
O exitPictureInPicture() método da interface do documento solicita que um vídeo contido neste documento, que atualmente está flutuando, seja retirado do modo de imagem em imagem, restaurando o estado anterior da tela.
function exitPictureInPicture(): Promise<void>
Retornos
Promise<void>
exitPointerLock()
O exitPointerLock() método da interface do Documento libera de forma assíncrona um bloqueio de ponteiro solicitado anteriormente por meio de Element.requestPointerLock.
function exitPointerLock()
getElementById(string)
Retorna o primeiro elemento dentro dos descendentes do nó cuja ID é elementId.
function getElementById(elementId: string): HTMLElement | null
Parâmetros
- elementId
-
string
Retornos
HTMLElement | null
getElementsByClassName(string)
O getElementsByClassName método de todos os elementos filho que têm todos os nomes de classe fornecidos.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parâmetros
- classNames
-
string
Retornos
HTMLCollectionOf<Element>
getElementsByName(string)
O getElementsByName() método do objeto Document retorna uma Coleção NodeList de elementos com um determinado name atributo no documento.
function getElementsByName(elementName: string): NodeListOf<HTMLElement>
Parâmetros
- elementName
-
string
Retornos
NodeListOf<HTMLElement>
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parâmetros
- qualifiedName
-
string
Retornos
HTMLCollectionOf<Element>
getElementsByTagName<K>(K)
O getElementsByTagName método do documento completo é pesquisado, incluindo o nó raiz.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parâmetros
- qualifiedName
-
K
Retornos
HTMLCollectionOf<HTMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parâmetros
- qualifiedName
-
K
Retornos
HTMLCollectionOf<SVGElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parâmetros
- qualifiedName
-
K
Retornos
HTMLCollectionOf<MathMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
Aviso
Essa API foi preterida.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Parâmetros
- qualifiedName
-
K
Retornos
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
Parâmetros
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
Retornos
HTMLCollectionOf<MathMLElement>
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
Retorna uma lista de elementos com o nome da marca especificado que pertence ao namespace fornecido.
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parâmetros
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Retornos
HTMLCollectionOf<HTMLElement>
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
Parâmetros
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
Retornos
HTMLCollectionOf<SVGElement>
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parâmetros
- namespace
-
string | null
- localName
-
string
Retornos
HTMLCollectionOf<Element>
getSelection()
O getSelection() método da interface do Documento retorna o objeto Selection associado a este documento, representando o intervalo de texto selecionado pelo usuário ou a posição atual do cursor.
function getSelection(): Selection | null
Retornos
Selection | null
hasFocus()
O hasFocus() método da interface do Documento retorna um valor booliano que indica se o documento ou qualquer elemento dentro do documento tem foco.
function hasFocus(): boolean
Retornos
boolean
hasStorageAccess()
O hasStorageAccess() método da interface do Documento retorna uma Promessa que é resolvida com um valor booliano que indica se o documento tem acesso a cookies não particionados e de terceiros.
function hasStorageAccess(): Promise<boolean>
Retornos
Promise<boolean>
importNode<T>(T, boolean | ImportNodeOptions)
O método do importNode() objeto Document cria uma cópia de um inserido no documento atual posteriormente.
function importNode<T>(node: T, options?: boolean | ImportNodeOptions): T
Parâmetros
- node
-
T
- options
-
boolean | ImportNodeOptions
Retornos
T
open(string | URL, string, string)
function open(url: string | URL, name: string, features: string): Window | null
Parâmetros
- url
-
string | URL
- name
-
string
- features
-
string
Retornos
Window | null
open(string, string)
O Document.open() método abre um documento para Isso vem com alguns efeitos colaterais.
function open(unused1?: string, unused2?: string): Document
Parâmetros
- unused1
-
string
- unused2
-
string
Retornos
queryCommandEnabled(string)
O Document.queryCommandEnabled() método informa se o comando do editor especificado está ou não habilitado pelo navegador.
function queryCommandEnabled(commandId: string): boolean
Parâmetros
- commandId
-
string
Retornos
boolean
queryCommandIndeterm(string)
Aviso
Essa API foi preterida.
function queryCommandIndeterm(commandId: string): boolean
Parâmetros
- commandId
-
string
Retornos
boolean
queryCommandState(string)
O queryCommandState() método informará se a seleção atual tem um determinado comando Document.execCommand() aplicado.
function queryCommandState(commandId: string): boolean
Parâmetros
- commandId
-
string
Retornos
boolean
queryCommandSupported(string)
O Document.queryCommandSupported() método informa se o comando do editor especificado tem suporte ou não pelo navegador.
function queryCommandSupported(commandId: string): boolean
Parâmetros
- commandId
-
string
Retornos
boolean
queryCommandValue(string)
Aviso
Essa API foi preterida.
function queryCommandValue(commandId: string): string
Parâmetros
- commandId
-
string
Retornos
string
releaseEvents()
Aviso
Essa API foi preterida.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parâmetros
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)
O removeEventListener() método da interface EventTarget remove um ouvinte de eventos registrado anteriormente com EventTarget.addEventListener() do destino.
function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parâmetros
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestStorageAccess()
O requestStorageAccess() método da interface do Documento permite que o conteúdo carregado em um contexto de terceiros (ou seja, inserido em um iframe) solicite acesso a cookies de terceiros e estado não particionado.
function requestStorageAccess(): Promise<void>
Retornos
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
O startViewTransition() método da interface do documento inicia uma nova transição de exibição spa (mesmo documento) e retorna um objeto ViewTransition para representá-lo.
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
Parâmetros
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
Retornos
ViewTransition
write(string[])
O write() método da interface do documento grava texto em um ou mais parâmetros TrustedHTML ou cadeia de caracteres em um fluxo de documentos aberto por document.open().
function write(text: string[])
Parâmetros
- text
-
string[]
writeln(string[])
O writeln() método da interface do documento grava texto em um ou mais parâmetros TrustedHTML ou cadeia de caracteres em um fluxo de documento aberto por document.open(), seguido por um caractere de nova linha.
function writeln(text: string[])
Parâmetros
- text
-
string[]
Detalhes do método herdado
append((string | Node)[])
Insere nós após o último filho do nó, substituindo cadeias de caracteres em nós por nós de texto equivalentes.
Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas.
function append(nodes: (string | Node)[])
Parâmetros
- nodes
-
(string | Node)[]
Herdado de ParentNode.append
appendChild<T>(T)
O appendChild() método da interface do nó adiciona um nó ao final da lista de filhos de um nó pai especificado.
function appendChild<T>(node: T): T
Parâmetros
- node
-
T
Retornos
T
Herdado de Node.appendChild
cloneNode(boolean)
O cloneNode() método da interface do Nó retorna uma duplicata do nó no qual esse método foi chamado.
function cloneNode(subtree?: boolean): Node
Parâmetros
- subtree
-
boolean
Retornos
Node
Herdado de Node.cloneNode
compareDocumentPosition(Node)
O compareDocumentPosition() método da interface do Nó relata a posição de seu nó de argumento em relação ao nó no qual ele é chamado.
function compareDocumentPosition(other: Node): number
Parâmetros
- other
-
Node
Retornos
number
herdado de Node.compareDocumentPosition
contains(Node | null)
O contains() método da interface do nó retorna um valor booliano que indica se um nó é descendente de determinado nó, que é o nó em si, um de seus filhos diretos (Node.childNodes), um dos filhos diretos das crianças e assim por diante.
function contains(other: Node | null): boolean
Parâmetros
- other
-
Node | null
Retornos
boolean
Herdado de Node.contains
createExpression(string, XPathNSResolver | null)
function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression
Parâmetros
- expression
-
string
- resolver
-
XPathNSResolver | null
Retornos
XPathExpression
Herdado de XPathEvaluatorBase.createExpression
createNSResolver(Node)
function createNSResolver(nodeResolver: Node): Node
Parâmetros
- nodeResolver
-
Node
Retornos
Node
herdado de XPathEvaluatorBase.createNSResolver
dispatchEvent(Event)
O dispatchEvent() método do EventTarget envia um Evento para o objeto, (de forma síncrona) invocando os ouvintes de eventos afetados na ordem apropriada.
function dispatchEvent(event: Event): boolean
Parâmetros
- event
-
Event
Retornos
boolean
herdado de Node.dispatchEvent
elementFromPoint(number, number)
function elementFromPoint(x: number, y: number): Element | null
Parâmetros
- x
-
number
- y
-
number
Retornos
Element | null
herdado de DocumentOrShadowRoot.elementFromPoint
elementsFromPoint(number, number)
function elementsFromPoint(x: number, y: number): Element[]
Parâmetros
- x
-
number
- y
-
number
Retornos
Element[]
herdado de DocumentOrShadowRoot.elementsFromPoint
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)
function evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult
Parâmetros
- expression
-
string
- contextNode
-
Node
- resolver
-
XPathNSResolver | null
- type
-
number
- result
-
XPathResult | null
Retornos
XPathResult
Herdado de XPathEvaluatorBase.evaluate
getAnimations()
function getAnimations(): Animation[]
Retornos
Animation[]
Herdado de DocumentOrShadowRoot.getAnimations
getRootNode(GetRootNodeOptions)
O getRootNode() método da interface node retorna a raiz do objeto de contexto, que opcionalmente inclui a raiz de sombra se estiver disponível.
function getRootNode(options?: GetRootNodeOptions): Node
Parâmetros
- options
-
GetRootNodeOptions
Retornos
Node
herdado de Node.getRootNode
hasChildNodes()
O hasChildNodes() método da interface do nó retorna um valor booliano que indica se o nó fornecido tem nós filho ou não.
function hasChildNodes(): boolean
Retornos
boolean
Herdado de Node.hasChildNodes
insertBefore<T>(T, Node | null)
O insertBefore() método da interface do nó insere um nó antes de um nó de referência como um filho de um nó pai especificado.
function insertBefore<T>(node: T, child: Node | null): T
Parâmetros
- node
-
T
- child
-
Node | null
Retornos
T
Herdado de Node.insertBefore
isDefaultNamespace(string | null)
O isDefaultNamespace() método da interface do Nó aceita um URI de namespace como argumento.
function isDefaultNamespace(namespace: string | null): boolean
Parâmetros
- namespace
-
string | null
Retornos
boolean
Herdado de Node.isDefaultNamespace
isEqualNode(Node | null)
O isEqualNode() método da interface do nó testa se dois nós são iguais.
function isEqualNode(otherNode: Node | null): boolean
Parâmetros
- otherNode
-
Node | null
Retornos
boolean
Herdado de Node.isEqualNode
isSameNode(Node | null)
O isSameNode() método da interface do Nó é um alias herdado para o === operador de igualdade estrita.
function isSameNode(otherNode: Node | null): boolean
Parâmetros
- otherNode
-
Node | null
Retornos
boolean
Herdado de Node.isSameNode
lookupNamespaceURI(string | null)
O lookupNamespaceURI() método da interface do nó usa um prefixo como parâmetro e retorna o URI do namespace associado a ele no nó fornecido, se encontrado (e null se não for).
function lookupNamespaceURI(prefix: string | null): string | null
Parâmetros
- prefix
-
string | null
Retornos
string | null
herdado de Node.lookupNamespaceURI
lookupPrefix(string | null)
O lookupPrefix() método da interface do nó retorna uma cadeia de caracteres que contém o prefixo para um determinado URI de namespace, se presente e null se não.
function lookupPrefix(namespace: string | null): string | null
Parâmetros
- namespace
-
string | null
Retornos
string | null
herdado de Node.lookupPrefix
normalize()
O normalize() método da interface do Nó coloca o nó especificado e toda a subárvore em uma forma normalizada .
function normalize()
Herdado de Node.normalize
prepend((string | Node)[])
Insere nós antes do primeiro filho do nó, substituindo cadeias de caracteres em nós por nós de texto equivalentes.
Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas.
function prepend(nodes: (string | Node)[])
Parâmetros
- nodes
-
(string | Node)[]
Herdado de ParentNode.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
Parâmetros
- selectors
-
string
Retornos
E | null
Herdado de ParentNode.querySelector
querySelector<K>(K)
Retorna o primeiro elemento que é um descendente de nó que corresponde aos seletores.
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
Parâmetros
- selectors
-
K
Retornos
HTMLElementTagNameMap[K] | null
Herdado de ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parâmetros
- selectors
-
K
Retornos
SVGElementTagNameMap[K] | null
Herdado de ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parâmetros
- selectors
-
K
Retornos
MathMLElementTagNameMap[K] | null
Herdado de ParentNode.querySelector
querySelector<K>(K)
Aviso
Essa API foi preterida.
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
Parâmetros
- selectors
-
K
Retornos
HTMLElementDeprecatedTagNameMap[K] | null
Herdado de ParentNode.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parâmetros
- selectors
-
string
Retornos
NodeListOf<E>
Herdado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
Retorna todos os descendentes de elementos de nó que correspondem aos seletores.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parâmetros
- selectors
-
K
Retornos
NodeListOf<HTMLElementTagNameMap[K]>
Herdado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parâmetros
- selectors
-
K
Retornos
NodeListOf<SVGElementTagNameMap[K]>
Herdado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parâmetros
- selectors
-
K
Retornos
NodeListOf<MathMLElementTagNameMap[K]>
Herdado de ParentNode.querySelectorAll
querySelectorAll<K>(K)
Aviso
Essa API foi preterida.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Parâmetros
- selectors
-
K
Retornos
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Herdado de ParentNode.querySelectorAll
removeChild<T>(T)
O removeChild() método da interface do nó remove um nó filho do DOM e retorna o nó removido.
function removeChild<T>(child: T): T
Parâmetros
- child
-
T
Retornos
T
Herdado de Node.removeChild
replaceChild<T>(Node, T)
O replaceChild() método da interface do Nó substitui um nó filho dentro do nó determinado (pai).
function replaceChild<T>(node: Node, child: T): T
Parâmetros
- node
-
Node
- child
-
T
Retornos
T
Herdado de Node.replaceChild
replaceChildren((string | Node)[])
Substitua todos os filhos do nó por nós, substituindo cadeias de caracteres em nós por nós de texto equivalentes.
Gerará um DOMException "HierarchyRequestError" se as restrições da árvore de nó forem violadas.
function replaceChildren(nodes: (string | Node)[])
Parâmetros
- nodes
-
(string | Node)[]
herdado de ParentNode.replaceChildren