Changes between Initial Version and Version 1 of Ticket #870
- Timestamp:
- Jan 23, 2007, 12:33:25 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #870 – Description
initial v1 1 1 Build a function that can test for isElement, some tests to consider: 2 2 {{{ 3 document 3 window // should fail 4 document // should fail 4 5 document.body 5 document.body.childNodes 6 document.body.firstChild // text node7 document.body.firstChild.nextSibling // Comment6 document.body.childNodes // should fail 7 document.body.firstChild // fail, text node 8 document.body.firstChild.nextSibling // fail, comment 8 9 document.getElementsByTagName("form")[0] 9 document.getElementsByTagName("form")[0].elements 10 document.getElementsByTagName("form")[0].elements // fail, array 10 11 document.getElementsByTagName("object")[0] 11 12 }}}