Lines Matching refs:body
2 Test DOM\Document::$body setter errors
11 var_dump($dom->body?->nodeName);
13 $dom->body = $cb($dom);
17 var_dump($dom->body?->nodeName);
20 echo "--- Set body to NULL ---\n";
27 testNormalReplace(fn ($dom) => $dom->createElementNS("urn:a", "body"));
32 echo "--- Set body without document element ---\n";
35 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "body");
39 var_dump($dom->body?->nodeName);
43 --- Set body to NULL ---
45 The new body must either be a body or a frameset tag
49 The new body must either be a body or a frameset tag
53 Cannot assign Dom\Element to property Dom\Document::$body of type ?Dom\HTMLElement
57 Cannot assign Dom\Element to property Dom\Document::$body of type ?Dom\HTMLElement
59 --- Set body without document element ---
60 A body can only be set if there is a document element