Jump to content

DOM scripting: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Dated {{Clarify}}. (Build p613)
Remove merge tag, no discussion has been started in the 3 years since being tagged, feel free to revert once a discussion is started
Line 1: Line 1:
{{Merge to|Document Object Model|date=January 2009}}
{{Unreferenced|date=January 2009}}
{{Unreferenced|date=January 2009}}



Revision as of 13:12, 21 February 2012

The term DOM scripting refers to programmatically accessing the Document Object Model (DOM). In common usage, DOM scripting implies JavaScript. DOM scripting has its roots in Dynamic HTML (DHTML), but is more structured. It is the third pillar[clarification needed] in the web standards movement.

DHTML vs. DOM scripting

Traditional DHTML:
  • Uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
  • May be browser-specific
  • May require code forking
  • Is web only
  • Was used with non-standardized markup
DOM scripting:
  • Uses a scripting language and valid markup (HTML/XHTML/XML/etc.)
  • Can be used with any programming/scripting language
  • Aims to be browser independent, is browser independent among standards-compliant browsers
  • Is web only
  • May degrade gracefully