问题描述:

Any one know where the function window.document.all is defined? Tried searches but nothing coming up.

Many thanks

Edit: note I am aware that thus deprecated and documentgetelementbyid should be used. still need to know what is executed when this function is run.

网友答案:

It has nothing to do with Google V8. It is a legacy property of the document object. It stores an array of all elements in the document, indexed by ID.

You should use document.getElementById() instead.

网友答案:

If you are asking this question then the source code will probably not be useful to you in the first place. But here you go:

https://github.com/WebKit/webkit/blob/5b7f307f78ff665c0102bd008d2a47b9b2f8e5b5/Source/WebCore/dom/Document.cpp#L4405

相关阅读:
Top