Bug Tracker

Changes between Initial Version and Version 1 of Ticket #870


Ignore:
Timestamp:
Jan 23, 2007, 12:33:25 PM (16 years ago)
Author:
john
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #870 – Description

    initial v1  
    11Build a function that can test for isElement, some tests to consider:
    22{{{
    3 document
     3window // should fail
     4document // should fail
    45document.body
    5 document.body.childNodes
    6 document.body.firstChild // text node
    7 document.body.firstChild.nextSibling // Comment
     6document.body.childNodes // should fail
     7document.body.firstChild // fail, text node
     8document.body.firstChild.nextSibling // fail, comment
    89document.getElementsByTagName("form")[0]
    9 document.getElementsByTagName("form")[0].elements
     10document.getElementsByTagName("form")[0].elements // fail, array
    1011document.getElementsByTagName("object")[0]
    1112}}}