MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

Modelo de Objeto de Documento (DOM)

Modelo de Objeto de Documento (DOM) é uma interface de programação para documentos HTML, XML e SVG. It provides a structured representation of the document as a tree. The DOM defines methods that allow access to the tree, so that they can change the document structure, style and content. The DOM provides a representation of the document as a structured group of nodes and objects, possessing various properties and methods. Nodes can also have event handlers attached to them, and once an event is triggered, the event handlers get executed. Essentially, it connects web pages to scripts or programming languages.

Although the DOM is often accessed using JavaScript, it is not a part of the JavaScript language. It can also be accessed by other languages.

Está disponível uma introdução ao DOM.

Interfaces DOM

Interfaces DOM obsoletas

The Document Object Model has been highly simplified. To achieve this, the following interfaces present in the different DOM level 3 or earlier specification have been removed. It is still not very clear whether some may be reintroduced or not, but for the time being they have to be considered as obsolete and should be avoided:

Interfaces HTML

A document containing HTML is described using the HTMLDocument interface. Note that the HTML specification also extends the Document interface.

An HTMLDocument object also gives access to various features of browsers like the ta or the window, in which a page is drawn using the Window interface, the Style associated to it (usually CSS), the history of the browser relative to the context, History. Eventually, Selection is done on the document.

Interfaces de elemento HTML

Outras interfaces

Interfaces HTML obsoletas

Interfaces SVG

Interfaces de elemento SVG

Interfaces de tipo de dados SVG

Here are the DOM API for data types used in the definitions of SVG properties and attributes.

Note: Starting in Gecko 5.0, the following SVG-related DOM interfaces representing lists of objects are now indexable and can be accessed ; in addition, they have a length property indicating the number of items in the lists: SVGLengthList, SVGNumberList, SVGPathSegList, and SVGPointList.

Static type

Animated type

Interfaces relacionadas com SMIL

Outras interfaces SVG

Consultar também

Etiquetas do documento e contribuidores

 Contribuidores para esta página: mansil, Brettz9
 Última atualização por: mansil,