Issue 3152: typeof(document.all) returns "undefined"
http://code.google.com/p/chromium/issues/detail?id=3152

New issue report by [EMAIL PROTECTED]:
Product Version      : 0.3.155.0
URLs (if applicable) :
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 3: FAIL
     Firefox 3:OK
          IE 7:OK

What steps will reproduce the problem?
1. Create a simple web page that executes this script:
if(document.all) { alert("docement.all exist"); } else {  
alert("docement.all does NOT exist"); }
if(typeof(document.all) != "undefined") { alert("docement.all exist"); }  
else { alert("docement.all is NOT defined"); }
alert(document.all);
alert(typeof(document.all));
alert(document.all[0]);

What is the expected result?
docement.all exist
docement.all exist
[object HTMLCollection]
object
[object HTMLHtmlElement]

What happens instead?
docement.all does NOT exist
docement.all is NOT defined
undefined
undefined
[object HTMLHtmlElement]

Please provide any additional information below. Attach a screenshot if  
possible.
document.all is an Object that represents a collection of elements.
Referencing this object should not return undefined.
The typeof() function does not handle this object properly.



Attachments:
        document.all.png  6.8 KB


Issue attributes:
        Status: Unconfirmed
        Owner: [EMAIL PROTECTED]
        Labels: Type-Bug Pri-2 OS-All Area-Misc

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to