it's the model used by a browser to identify the objects and associated methods in an HTML document. objects are anything from a table cell to an input field to an image. so when you say something like document.saveForm.userName.value, you are referring to the value of the input field named "userName" contained in the form named "saveForm" contained within the current document. make sense?
I think so..so when someone says something has to conform to the specifications of the DOM, they are saying that the scripting language has to follow guidelines that have been set?
pretty much. usually that's used in concert with a specific browser requirement. each browser uses a different DOM. so someone would generally say that code must adhere to the IE DOM or Netscape DOM. actually, most people just ask that the code work on certain browser versions and on certain platforms, or they ask that it adheres to W3C or some more global standard. the DOM is implicit in that.
"This specification defines the Document Object Model Level 2 HTML, a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content and structure of [HTML 4.01] and [XHTML 1.0] documents. The Document Object Model Level 2 HTML builds on the Document Object Model Level 2 Core [DOM Level 2 Core] and is not backward compatible with DOM Level 1 HTML [DOM Level 1]."
Comments 16
Reply
Reply
Reply
What does this mean? I found it on the W3C website, here:http://www.w3.org/TR/2002/CR-DOM-Level-2-HTML-20020605/
"This specification defines the Document Object Model Level 2 HTML, a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content and structure of [HTML 4.01] and [XHTML 1.0] documents. The Document Object Model Level 2 HTML builds on the Document Object Model Level 2 Core [DOM Level 2 Core] and is not backward compatible with DOM Level 1 HTML [DOM Level 1]."
(thanks for your help)
Reply
Leave a comment