blob: 117065851b8ea449026b1c53bf3e7c60508eccce [file] [log] [blame]
This test reports the value that document.all returns for various null-like arguments.
Written for http://bugs.webkit.org/show_bug.cgi?id=13106.
document.all[0]: [object HTMLHtmlElement]
document.all(0): [object HTMLHtmlElement]
document.all.item(0): [object HTMLHtmlElement]
document.all[""]: undefined
document.all(""): undefined
document.all.item(""): undefined
document.all["0"]: [object HTMLHtmlElement]
document.all("0"): [object HTMLHtmlElement]
document.all.item("0"): [object HTMLHtmlElement]
document.all[undefined]: undefined
document.all(undefined): undefined
document.all.item(undefined): undefined
document.all[null]: undefined
document.all(null): undefined
document.all.item(null): undefined