3 ms·
What is a DOM node? A peek under the hood
- _nalply 2y agohttps://archive.is/KXoBn https://archive.is/KXoBn
- politelemon 2y ago502 error currently
- peterburkimsher 2y agoSame here
- fricze 2y agotl;dr; JavaScript DOM nodes are just handles to Blink DOM nodes. The article doesn't peek under the hood tbh. If you want to look under the hood you should analyze the Blink implementation.
- interloxia 2y agoNot my area, please post more links. Here are the first two that I found that gave a bit of an introduction to the topic. https://developer.chrome.com/docs/chromium/blinkng https://developer.chrome.com/docs/chromium/blinkng https://firefox-source-docs.mozilla.org/gfx/RenderingOverview.html https://firefox-source-docs.mozilla.org/gfx/RenderingOvervie...
- orangepanda 2y agoNo relation to the <blink/> tag, I presume?
- wvbdmp 2y agoBlink is Chrome’s rendering engine, originally forked from Webkit. Interestingly, it is indeed named after the blink tag.
- twiss 2y agoFor a more authoritative reference, the WebIDL spec explains: (https://webidl.spec.whatwg.org/#idl-objects https://webidl.spec.whatwg.org/#idl-objects) > the browser-implemented DOM objects (implementing interfaces such as Node and Document) that provide access to a web page’s contents to JavaScript running in the page would be platform objects. These objects might be exotic objects, implemented in a language like C++, or they might be native JavaScript objects. Regardless, an implementation of a given set of IDL fragments needs to be able to recognize all platform objects that are created by the implementation. This might be done by having some internal state that records whether a given object is indeed a platform object for that implementation, or perhaps by observing that the object is implemented by a given internal C++ class. How exactly platform objects are recognized by a given implementation of a set of IDL fragments is implementation specific.
- Ezek-iel 2y agoThere is a typo at the first sentence of the conclusion "JavaScript objects aren't actually DOM nodes at all." instead of "DOM nodes aren't actually Javascript objects at all."