Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 640187 of DOM

  • Revision slug: Glossary/DOM
  • Revision title: DOM
  • Revision id: 640187
  • Created:
  • Creator: chalkers
  • Is current revision? No
  • Comment

Revision Content

Summary

The Document Object Model (DOM) is an API defined by the W3C to represent and interact with any HTML or XML document.

In Depth

The Document Object Model is one of the most used {{Glossary("API")}} on the web as it allows to access every single part of an {{Glossary("HTML")}} or {{Glossary("XML")}} document and interact with it. This model represents an {{Glossary("HTML")}} document as it would have been a tree of nodes, where each node represents a portion of the document whether it's an {{Glossary("element")}}, a portion of text or a comment. Nodes can be created, moved, changed, and events that occured on them can be listened to and then acted on (reaction to the event).

The early version of the DOM were not specified and came from the first {{Glossary("Browser","browsers")}} implementing {{Glossary("JavaScript")}}. This legacy DOM is sometime refered as DOM 0. Today, the DOM specification is lead by the {{Glossary("W3C")}} and the DOM Working Group is currently working on the fourth version of the DOM specification.

Know more

General Knowledge

Technical information

Revision Source

<h2 id="Summary">Summary</h2>
<p>The Document Object Model (DOM) is an API defined by the W3C to represent and interact with any HTML or XML document.</p>
<h2 id="In_Depth">In Depth</h2>
<p>The Document Object Model is one of the most used {{Glossary("API")}} on the web as it allows to access every single part of an {{Glossary("HTML")}} or {{Glossary("XML")}} document and interact with it.&nbsp;<span style="font-size: 14px; line-height: 1.5;">This model represents an&nbsp;</span>{{Glossary("HTML")}}<span style="font-size: 14px; line-height: 1.5;">&nbsp;document as it would have been a tree of nodes, where each node represents a portion of the document whether it's an {{Glossary("element")}}, a portion of text or a comment. Nodes can be created, moved, changed, and events that occured on them can be listened to and then acted on (reaction to the event).</span></p>
<p><span style="font-size: 14px; line-height: 1.5;">The early version of the DOM were not specified and came from the first {{Glossary("Browser","browsers")}} implementing {{Glossary("JavaScript")}}. This legacy DOM is sometime refered as DOM 0. Today, the DOM specification is lead by the {{Glossary("W3C")}} and the DOM Working Group is currently working on the fourth version of the DOM specification.</span></p>
<h2 id="Know_more">Know more</h2>
<h3 id="General_Knowledge">General Knowledge</h3>
<ul>
 <li><a href="https://en.wikipedia.org/wiki/Document_Object_Model" rel="external">The Document Object Model on Wikipedia</a></li>
</ul>
<h3 id="Technical_information">Technical information</h3>
<ul>
 <li><a href="/en-US/docs/DOM">The DOM documentation on MDN</a></li>
 <li><a href="https://www.w3.org/DOM/DOMTR" rel="external">The various DOM specification at W3C</a></li>
</ul>
Revert to this revision