Lines Matching refs:body
2 Test DOM\Document::$body setter
8 echo "--- Replace body with itself ---\n";
10 $dom->body = $dom->body;
11 var_dump($dom->body?->nodeName);
13 echo "--- Add body when there is no body yet ---\n";
15 $dom->body->remove();
16 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
17 var_dump($dom->body?->nodeName);
19 echo "--- Replace old body with new body ---\n";
21 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
22 var_dump($dom->body?->nodeName);
24 echo "--- Replace old body with new body, while still having a reference to the old body ---\n";
26 $old = $dom->body;
27 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
28 var_dump($dom->body?->nodeName);
33 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "body");
34 var_dump($dom->body?->nodeName);
38 --- Replace body with itself ---
40 --- Add body when there is no body yet ---
42 --- Replace old body with new body ---
44 --- Replace old body with new body, while still having a reference to the old body ---