How a DOM Element is Attached

来源:互联网 发布:人工智能是什么的产物 编辑:程序博客网 时间:2024/05/09 12:18

How a DOM Element is Attached


The implementation of Node::attach() is just a recursive depth-first traversal. However,Element::attach() does a bit more, also creating a renderer (if necessary) and resolving style for the element.

This diagram illustrates how it happens, showing relationships between the objects involved.

原创粉丝点击