dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: DOM level 2

  1. #1
    Join Date
    Nov 2011
    Posts
    64

    DOM level 2

    Is addeventlistener at DOM level 2 ? what else is in DOM level 2 and what is the different between DOM level 1 and 2 ?

  2. #2
    Join Date
    Nov 2006
    Location
    Oakland
    Posts
    500
    That's a broad question. Maybe a Google search will provide quicker and more detailed answered.

  3. #3
    Join Date
    Nov 2011
    Posts
    64
    Give me some elements in DOM level 2

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    DOM means a model of referring and interacting with the HTML (and XML) Elements. Therefor, the DOM levels are versions of an interacting model. not versions of the HTML language. You will not find new elements in DOM 2, but you will find new ways to find, represent and interact with the same HTML elements.

    And yes, addEventListener is a method added in DOM 2, along with a specific event model . DOM 2 standardized also the getElementById, getElementsByTagName, getElementsByName. And the keyboard event handling. And many others...

    Why do you asked that?

  5. #5
    Join Date
    Nov 2011
    Posts
    64
    getelementbyid from what i read is in DOM level 1 ?

  6. #6
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by stevengoh View Post
    getelementbyid from what i read is in DOM level 1 ?
    Could be. Who cares, after all? Are you writing the history of DOM, or what?

  7. #7
    Join Date
    Nov 2011
    Posts
    64
    I am trying to understand fully on javascript so all details I wish I could know.

  8. #8
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    2 should really be 1 since "0" was 1, but version numbers on web techs are always a mess.

    the dom as of 4 years ago is dom2: http://www.w3.org/TR/DOM-Level-2-Core/expanded-toc.html

    most print media refers to this dom, and most of the features are still used today.

    dom2 basically solidified the existing Netscape and MS doms. I'd say adding namespace support was the biggest over-all change. i can see it trying to use the same interface for html and xml, and being released ion 2000 hot on the heels of xhtml, you can guess that xmlishness was indeed the main focus. i think normalize(), textContent, replaceChild(), and isSupported() were first codified in 2, if memory serves me correct.

    I still people using Node.data to this day; just because something's formalized, doesn't mean it's popular.

    dom3 added children, draggable, dataset, classList, querySelectorAll, and a few other nice methods.

    we are now on 4 if anyone is still counting.
    the recent changes basically tone down Node(), so that attrib nodes and the like are not still referred to by iterating just dumb nodes. also form validation, nextElementSibling, and a few other lazy methods were added.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles