Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 260) sorted by relevance

1234567891011

/PHP-8.4/ext/dom/tests/modern/spec/
H A DElement_removeAttributeNS.phpt10 $body = $dom->getElementsByTagName("body")[0];
78 <body foo:bar="baz"></body>
79 <body foo:bar="baz"></body>
80 <body align="foo" foo:bar="baz"></body>
81 <body align="foo" foo:bar="baz"></body>
82 <body align="foo"></body>
83 <body align="foo"></body>
84 <body align="foo" foo:bar="baz"></body>
85 <body align="foo" foo:bar="baz"></body>
90 <body align="foo" foo:bar="baz"></body>
[all …]
H A DElement_removeAttribute.phpt10 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
11 $body = $dom->getElementsByTagName("body")[0];
12 var_dump($body->removeAttribute("align"));
14 echo $dom->saveHtml($body), "\n";
21 echo $dom->saveHtml($body), "\n";
28 echo $dom->saveHtml($body), "\n";
32 echo $dom->saveHtml($body), "\n";
51 <body></body>
54 <body></body>
57 <body></body>
[all …]
H A DElement_getAttributeNS.phpt8 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
9 $body = $dom->getElementsByTagName("body")[0];
14 var_dump($body->getAttributeNS(NULL, "align"));
15 var_dump($body->getAttributeNS("", "align"));
16 var_dump($body->getAttributeNS(NULL, "ALIGN"));
17 var_dump($body->getAttributeNS("", "ALIGN"));
18 var_dump($body->getAttributeNS(NULL, "foo:bar"));
19 var_dump($body->getAttributeNS("", "foo:bar"));
20 var_dump($body->getAttributeNS(NULL, "FOO:BAR"));
21 var_dump($body->getAttributeNS("", "FOO:BAR"));
[all …]
H A DElement_getAttributeNodeNS.phpt10 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
11 $body = $dom->getElementsByTagName("body")[0];
16 var_dump($body->getAttributeNodeNS(NULL, "align")->textContent);
17 var_dump($body->getAttributeNodeNS("", "align")->textContent);
18 var_dump($body->getAttributeNodeNS(NULL, "ALIGN"));
19 var_dump($body->getAttributeNodeNS("", "ALIGN"));
21 var_dump($body->getAttributeNodeNS("", "foo:bar")->textContent);
22 var_dump($body->getAttributeNodeNS(NULL, "FOO:BAR"));
23 var_dump($body->getAttributeNodeNS("", "FOO:BAR"));
34 var_dump($body->getAttributeNodeNS(NULL, "prefix:LOCAL"));
[all …]
H A DElement_hasAttributeNS.phpt8 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
9 $body = $dom->getElementsByTagName("body")[0];
14 var_dump($body->hasAttributeNS(NULL, "align"));
15 var_dump($body->hasAttributeNS("", "align"));
16 var_dump($body->hasAttributeNS(NULL, "ALIGN"));
17 var_dump($body->hasAttributeNS("", "ALIGN"));
18 var_dump($body->hasAttributeNS(NULL, "foo:bar"));
19 var_dump($body->hasAttributeNS("", "foo:bar"));
20 var_dump($body->hasAttributeNS(NULL, "FOO:BAR"));
21 var_dump($body->hasAttributeNS("", "FOO:BAR"));
[all …]
H A DElement_getAttribute.phpt10 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
11 $body = $dom->getElementsByTagName("body")[0];
12 var_dump($body->getAttribute("align"));
13 var_dump($body->getAttribute("foo:bar"));
17 $body->setAttributeNode($attr = $dom->createAttribute("prefix:local"));
19 var_dump($body->getAttribute("prefix:local"));
23 $body->setAttributeNode($attr = $dom->createAttributeNS("urn:a", "prefix:local2"));
25 var_dump($body->getAttribute("prefix:local2"));
26 var_dump($body->getAttribute("Prefix:LOCAL2"));
H A DElement_getAttributeNode.phpt10 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
11 $body = $dom->getElementsByTagName("body")[0];
12 var_dump($body->getAttributeNode("align")->textContent);
13 var_dump($body->getAttributeNode("foo:bar")->textContent);
17 $body->setAttributeNode($attr = $dom->createAttribute("prefix:local"));
19 var_dump($body->getAttributeNode("prefix:local")->textContent);
23 $body->setAttributeNode($attr = $dom->createAttributeNS("urn:a", "prefix:local2"));
25 var_dump($body->getAttributeNode("prefix:local2")->textContent);
26 var_dump($body->getAttributeNode("Prefix:LOCAL2")->textContent);
H A DElement_hasAttribute.phpt10 …Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo" foo:bar="baz"></body></…
11 $body = $dom->getElementsByTagName("body")[0];
12 var_dump($body->hasAttribute("align"));
13 var_dump($body->hasAttribute("foo:bar"));
17 $body->setAttributeNode($attr = $dom->createAttribute("prefix:local"));
19 var_dump($body->hasAttribute("prefix:local"));
23 $body->setAttributeNode($attr = $dom->createAttributeNS("urn:a", "prefix:local2"));
25 var_dump($body->hasAttribute("prefix:local2"));
26 var_dump($body->hasAttribute("Prefix:LOCAL2"));
H A DNode_lookupNamespaceURI.phpt11 <body>
14 </body>
18 $body = $dom->getElementsByTagName("body")[0];
19 $namespaceless = $body->appendChild($dom->createElementNS(NULL, "foo"));
20 $prefixed = $body->appendChild($dom->createElementNS("urn:a", "a:a"));
48 var_dump($body->lookupNamespaceURI(""));
49 var_dump($body->lookupNamespaceURI(NULL));
50 var_dump($body->lookupNamespaceURI("a"));
54 var_dump($body->lookupNamespaceURI(""));
55 var_dump($body->lookupNamespaceURI(NULL));
[all …]
H A DNamedNodeMap_getNamedItem.phpt14 <body align="foo" foo:bar="baz">
15 </body>
21 $body = $dom->getElementsByTagName('body')->item(0);
22 $body->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:foo", "http://example.com/foo");
23 $attributes = $body->attributes;
40 $dom->appendChild($dom->importNode($body, true));
42 $body = $dom->getElementsByTagName('body')->item(0);
43 $attributes = $body->attributes;
H A DHTMLDocument_importNode_01.phpt11 <body xmlns="http://www.w3.org/1999/xhtml">
17 </body>
26 $body = $dom2->getElementsByTagName("body")[0];
27 $default_p = $body->lastElementChild;
39 <body xmlns="http://www.w3.org/1999/xhtml">
45 </body>
H A DDocument_implementation_createHTMLDocument.phpt27 <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
31 <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body></body></html>
35 <html xmlns="http://www.w3.org/1999/xhtml"><head><title>my &lt;title&gt;</title></head><body></body
/PHP-8.4/ext/dom/tests/modern/html/interactions/
H A DDocument_body_setter.phpt2 Test DOM\Document::$body setter
10 $dom->body = $dom->body;
13 echo "--- Add body when there is no body yet ---\n";
15 $dom->body->remove();
19 echo "--- Replace old body with new body ---\n";
24 echo "--- Replace old body with new body, while still having a reference to the old body ---\n";
26 $old = $dom->body;
33 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "body");
40 --- Add body when there is no body yet ---
42 --- Replace old body with new body ---
[all …]
H A DDocument_body_getter.phpt2 Test Dom\Document::$body getter
11 var_dump($dom->body?->nodeName);
15 $dom->body->remove();
16 var_dump($dom->body?->nodeName);
21 var_dump($dom->body?->nodeName);
27 var_dump($dom->body?->nodeName);
33 var_dump($dom->body?->nodeName);
69 <body/>
72 var_dump($dom->body);
78 --- After body removal ---
[all …]
H A DDocument_body_setter_errors.phpt2 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";
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
[all …]
H A Dnoscript.phpt10 …m\HTMLDocument::createFromString("<!doctype html><html><body><noscript><p>hi</p></noscript></body>…
35 <!DOCTYPE html><html><head></head><body><noscript><p>hi</p></noscript></body></html>
38 <html><head/><body><noscript><p>hi</p></noscript></body></html>
40 <!DOCTYPE html><html><head></head><body><noscript>&lt;p&gt;bye&lt;/p&gt;</noscript></body></html>
43 <html><head/><body><noscript>&lt;p&gt;bye&lt;/p&gt;</noscript></body></html>
45 <!DOCTYPE html><html><head></head><body><noscript>&lt;!-- &lt;/noscript&gt; --&gt;</noscript></body
48 <html><head/><body><noscript>&lt;!-- &lt;/noscript&gt; --&gt;</noscript></body></html>
/PHP-8.4/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_fromString_fromFile_LIBXML_HTML_NOIMPLIED.phpt26 test("<body><p>foo</p></body>");
31 test("<head><title>x</title></head><body><p>foo</p></body>");
36 test("<html><!-- foo --><body>hi</body></html>");
40 test("<!-- start --><body><head><html>foo</html></head></body><!-- end -->");
58 Testing: <body><p>foo</p></body>
59 <body><p>foo</p></body>
69 Testing: <head><title>x</title></head><body><p>foo</p></body>
70 <head><title>x</title></head><body><p>foo</p></body>
80 Testing: <html><!-- foo --><body>hi</body></html>
81 <html><!-- foo --><body>hi</body></html>
[all …]
/PHP-8.4/ext/standard/tests/http/
H A Dgh11274.phpt39 method: POST; body: hello=world
41 method: POST; body: hello=world
44 method: GET; body:
45 method: GET; body:
46 method: GET; body:
47 method: GET; body:
49 method: GET; body:
50 method: GET; body:
51 method: GET; body:
52 method: GET; body:
[all …]
/PHP-8.4/ext/dom/tests/
H A Dgh11625.phpt10 <body>
53 <body>
55 </body>
56 <body>
58 </body>
60 <body>
62 </body>
63 <body>
65 </body>
67 <body>
[all …]
H A DDOMNode_DOMNameSpaceNode_parentElement.phpt12 <body/>
16 echo "--- body test ---\n";
18 $body = $dom->documentElement->firstElementChild;
19 var_dump($body->parentNode->localName);
20 var_dump($body->parentElement->localName);
38 $body->appendChild($fragment);
45 --- body test ---
56 string(4) "body"
57 string(4) "body"
/PHP-8.4/ext/tidy/tests/
H A D028.phpt7 $x = tidy_parse_string("<body><div>Content</div></body>");
8 var_dump($x->body()->child[0]->name);
9 var_dump($x->body()->child[0]->getParent()->name);
14 string(4) "body"
H A D010.phpt2 Accessing root, body, html, and head nodes..
9 var_dump($a->body());
22 </body>
48 </body>
117 </body>
120 string(4) "body"
148 </body>
151 string(4) "body"
179 </body>
248 </body>
[all …]
/PHP-8.4/ext/dom/tests/modern/html/serializer/
H A DHTMLDocument_serialize_text_02.phpt9 $body = $dom->appendChild($dom->createElement("body"));
11 $tag = $body->appendChild($dom->createElement($tag));
13 $body->append("\n");
19 <body><style>&"<>  foobar</style>
27 </body>
/PHP-8.4/sapi/fpm/tests/
H A Dstatus.inc55 * @param string $body
63 var_dump($body);
95 * @param string $body
106 string $body,
145 * @param string $body
156 * @param string $body
169 $body,
180 * @param string $body
186 $body,
203 * @param string $body
[all …]
/PHP-8.4/ext/dom/tests/modern/common/
H A Dtemplate_nested.phpt11 <body>
13 </body>
17 $template = $dom->body->firstElementChild;
26 <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>
29 </body></html>

Completed in 30 milliseconds

1234567891011