blob: 1a1733401980c6fcf619c5085be8c39def4fcbe9 [file] [log] [blame]
<?php
$title="How a DOM Element is Attached";
include("../header.inc");
?>
<h2>
How a DOM Element is Attached
</h2>
<br>
<p>The implementation of <kbd>Node::attach()</kbd> is just a recursive depth-first traversal. However, <kbd>Element::attach()</kbd> does a bit more, also creating a renderer (if necessary) and resolving style for the element.
<p>This diagram illustrates how it happens, showing relationships between the objects involved.
<p><a href="images/dom-element-attach-large.png"><img src="images/dom-element-attach-small.png"></a>
<?php
include("../footer.inc");
?>