Checking for document.getElementById() means full DOM support?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Kypriotis
    New Member
    • Mar 2011
    • 37

    #1

    Checking for document.getElementById() means full DOM support?

    I want to create some nodes and insert them into my page just doing a
    Code:
    if (document.getElementById)
    is enough? or should I also use
    Code:
    if (!document.appendChild || !document.createTextNode) return;
    as well as checks any further DOM commands like
    Code:
    document.getElementById("banner_rotator_content").childNodes[0].nodeValue
    ?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    these commands are so basic, that you need a really old/weird browser (like NN4) to not have support nowadays (any decently modern browser supports the DOM base API).

    Comment

    Working...