Jump to content

DOM scripting: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
maintenance
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Clarify-span}}
Line 7: Line 7:
* Uses a scripting language and valid markup ([[HTML]]/[[XHTML]]/[[XML]]/etc.)
* Uses a scripting language and valid markup ([[HTML]]/[[XHTML]]/[[XML]]/etc.)
* May be browser-specific
* May be browser-specific
* {{clarify-span|May require [[code forking]]}}
* {{clarify-span|May require [[code forking]]|date=March 2013}}
* Is web only
* Is web only
* Was used with non-standardized markup
* Was used with non-standardized markup

Revision as of 18:09, 3 March 2013

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[clarify]
  • 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