Skip to content Skip to sidebar Skip to footer

Is The Document In Chrome The Same As The Interface Document In The Whatwg Specification?

When I use console.dir(document) in Chrome devtools,I can not find getElementByTagName on it. But the Standard defined getElementByTagName on document interface. Here is the Stand

Solution 1:

This is a quirk of how console.dir() works in Chrome. It prints accessor properties, but not methods. To see the methods, you need to use a different invocation, such as

console.log(Document.prototype);

Post a Comment for "Is The Document In Chrome The Same As The Interface Document In The Whatwg Specification?"