Lines Matching refs:container
11 $container = $dom->appendChild($dom->createElement("container"));
15 function setAttribute($container, string $name, string $value): Dom\Attr {
16 $container->setAttribute($name, $value);
17 return $container->getAttributeNode($name);
20 $attrs[] = setAttribute($container, "foo:bar", "&hello1");
21 echo $dom->saveHtml($container), "\n";
22 $attrs[] = setAttribute($container, "foo:bar", "&hello2");
23 echo $dom->saveHtml($container), "\n";
24 $attrs[] = setAttribute($container, "bar", "&hello3");
25 echo $dom->saveHtml($container), "\n";
26 $attrs[] = setAttribute($container, "xmlns", "&hello4");
27 echo $dom->saveHtml($container), "\n";
28 $attrs[] = setAttribute($container, "XMLns", "&hello5");
29 echo $dom->saveHtml($container), "\n";
30 $attrs[] = setAttribute($container, "BAR", "&hello6");
31 echo $dom->saveHtml($container), "\n";
40 <container foo:bar="&hello1"></container>
41 <container foo:bar="&hello2"></container>
42 <container foo:bar="&hello2" bar="&hello3"></container>
43 <container foo:bar="&hello2" bar="&hello3" xmlns="&hello4"></container>
44 <container foo:bar="&hello2" bar="&hello3" xmlns="&hello5"></container>
45 <container foo:bar="&hello2" bar="&hello6" xmlns="&hello5"></container>