Home
last modified time | relevance | path

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

1234567891011

/php-src/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_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_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_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;
/php-src/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 DDom_Element_insertAdjacentHTML.phpt44 <html><head></head><body><p>foo</p><p>bar</p><div>Sample text</div></body></html>
50 <html><head></head><body><div><p>foo</p><p>bar</p>Sample text</div></body></html>
56 <html><head></head><body><div>Sample text<p>foo</p><p>bar</p></div></body></html>
69 <html><head></head><body>text<div>Sample text</div></body></html>
75 <html><head></head><body><div>textSample text</div></body></html>
81 <html><head></head><body><div>Sample texttext</div></body></html>
87 <html><head></head><body><div>Sample text</div>text</body></html>
94 <html><head></head><body><div>Sample text</div></body></html>
100 <html><head></head><body><div>Sample text</div></body></html>
106 <html><head></head><body><div>Sample text</div></body></html>
[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-src/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 …]
H A DElement_outerHTML.phpt9 $p = $dom->body->firstChild;
13 $div = $dom->body->firstChild;
18 $dom->body->outerHTML = '<template><p>foo</p></template>';
19 var_dump($dom->body->querySelector('p')); // Should be NULL because the template contents do not pa…
26 <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><div></div> <p></p></body></html>
27 <html><head></head><body><div></div>&nbsp;<p></p></body></html>
29 <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>invalid�utf-8������ <p></p></body></h…
30 <html><head></head><body>invalid�utf-8������&nbsp;<p></p></body></html>
33 …ww.w3.org/1999/xhtml"><head></head><head><template><p>foo</p></template></head><body></body></html>
34 <html><head></head><head><template><p>foo</p></template></head><body></body></html>
/php-src/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-src/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-src/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-src/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-src/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-src/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 27 milliseconds

1234567891011