/php-src/ext/dom/tests/modern/spec/ |
H A D | create_element_util.inc | 8 function createElementNS($doc, $ns, $name, ?string $value = null) { 9 $element = $doc->createElementNS($ns, $name);
|
H A D | Element_setAttribute_with_namespace.phpt | 33 $container->setAttributeNode($dom->createAttributeNS("urn:b", "in:ns")); 34 $attrs[] = setAttribute($container, "in:ns", "&hello7"); 50 …"&hello3" xmlns="&hello4" XMLns="&hello5" BAR="&hello6" in:ns="&hello7"></cont… 75 Attr: in:ns 77 string(5) "in:ns"
|
H A D | Element_setAttributeNS.phpt | 27 echo "--- ns attributes with same namespace but different prefix ---\n"; 37 echo "--- ns attributes with different namespace but same prefix ---\n"; 57 --- ns attributes with same namespace but different prefix --- 63 --- ns attributes with different namespace but same prefix ---
|
H A D | gh11404_2.phpt | 8 $dom1 = DOM\XMLDocument::createFromString('<?xml version="1.0" ?><with xmlns="some:ns" />'); 22 <with xmlns="some:ns"><none xmlns=""/></with>
|
H A D | gh11404_1.phpt | 8 $dom1 = DOM\XMLDocument::createFromString('<?xml version="1.0"?><with xmlns="some:ns" />'); 23 <with xmlns="some:ns"><none xmlns=""/><none xmlns=""/></with>
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | tree.h | 117 lxb_html_token_t *token, lxb_ns_id_t ns); 121 lxb_html_token_t *token, lxb_ns_id_t ns, 127 lxb_html_token_t *token, lxb_ns_id_t ns); 133 lxb_ns_id_t ns); 189 lxb_ns_id_t ns, lxb_html_tag_category_t ct); 274 lxb_tag_id_t tag_id, lxb_ns_id_t ns) in lxb_html_tree_create_node() argument 277 tag_id, ns); in lxb_html_tree_create_node() 283 return node->local_name == tag_id && node->ns == LXB_NS_HTML; in lxb_html_tree_node_is() 346 if (node->ns == LXB_NS_MATH) { in lxb_html_tree_mathml_text_integration_point() 397 lxb_tag_id_t tag_id, lxb_ns_id_t ns);
|
/php-src/ext/dom/tests/ |
H A D | toString_exceptions.phpt | 18 '<root xmlns:ns="foo"><node attr="foo" /><node>Text</node><ns:node/><?pi foobar?></root>'); 58 <root xmlns:ns="foo"><node attr="foo"/><node>Text</node><ns:node/><?pi foobar?></root>
|
H A D | bug38850.phpt | 9 <foo xmlns="http://www.example.com/ns/foo" /> 22 http://www.example.com/ns/foo
|
H A D | bug70359.phpt | 18 echo "-- Test with parent and non-ns attribute --\n"; 34 echo "-- Test with parent and ns attribute --\n"; 65 -- Test with parent and non-ns attribute -- 69 -- Test with parent and ns attribute --
|
H A D | gh12616_3.phpt | 31 foreach ($xpath->query("/container/child1/namespace::*") as $ns) { 32 var_dump($ns); 37 foreach ($xpath->query("/container/child1/foo/namespace::*") as $ns) { 38 var_dump($ns); 43 foreach ($xpath->query("/container/child2/namespace::*") as $ns) { 44 var_dump($ns);
|
H A D | DOMDocument_relaxNGValidateSource_basic.phpt | 11 <grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
|
H A D | bug41257.phpt | 23 $disdef = $doc->isDefaultNamespace("http://ns")."\n"; 24 $eisdef = $root->isDefaultNamespace("http://ns")."\n";
|
H A D | bug80927.phpt | 49 $foobar = $dom->documentElement->appendChild($dom->createElementNS('some:ns', 'foo:bar')); 50 $foobar2 = $foobar->appendChild($dom->createElementNS('some:ns', 'foo:bar2')); 87 <html><foo:bar2 xmlns:foo="some:ns"/></html> 88 string(7) "some:ns"
|
/php-src/ext/simplexml/tests/ |
H A D | profile06.phpt | 9 <root xmlns:reserved="reserved-ns"> 14 $attr = $root->child->attributes('reserved-ns');
|
H A D | bug41861.phpt | 22 foreach (array(null, '#ns1', '#ns2', '#ns3') as $ns) 24 foreach ($xml->children($ns) as $child) 29 echo "children($ns): '$name' -- namespaces: ", implode(', ', $namespaces), "\n";
|
H A D | profile07.phpt | 9 <root xmlns:reserved="reserved-ns"> 15 $myattr = $root->child->attributes('reserved-ns');
|
/php-src/ext/dom/lexbor/lexbor/html/tree/ |
H A D | open_elements.h | 26 lxb_ns_id_t ns, 56 lxb_tag_id_t tag_id, lxb_ns_id_t ns, 61 lxb_tag_id_t tag_id, lxb_ns_id_t ns,
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | document.c | 76 lxb_dom_document_dtype_t type, unsigned int ns) in lxb_dom_document_init() argument 98 node->ns = ns; in lxb_dom_document_init() 104 document->ns = owner->ns; in lxb_dom_document_init() 142 document->ns = lexbor_hash_create(); in lxb_dom_document_init() 143 status = lexbor_hash_init(document->ns, 128, sizeof(lxb_ns_data_t)); in lxb_dom_document_init() 171 lexbor_hash_destroy(document->ns, true); in lxb_dom_document_init() 185 lexbor_hash_clean(document->ns); in lxb_dom_document_clean() 216 lexbor_hash_destroy(document->ns, true); in lxb_dom_document_destroy() 485 lxb_tag_id_t tag_id, lxb_ns_id_t ns) in lxb_dom_document_create_interface_noi() argument 487 return lxb_dom_document_create_interface(document, tag_id, ns); in lxb_dom_document_create_interface_noi()
|
H A D | document.h | 58 lexbor_hash_t *ns; member 87 lxb_dom_document_dtype_t type, unsigned int ns); 143 lxb_tag_id_t tag_id, lxb_ns_id_t ns) in lxb_dom_document_create_interface() argument 145 return document->create_interface(document, tag_id, ns); in lxb_dom_document_create_interface() 214 lxb_tag_id_t tag_id, lxb_ns_id_t ns);
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | processing_instruction.phpt | 8 $pi = $doc->appendChild($doc->createElementNS('some:ns', 'container')) 18 <container xmlns="some:ns"><?hello world?></container>
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | HTMLCollection_named_reads.phpt | 19 <node name="bar">without html ns</node> 20 <node name="bar" xmlns="http://www.w3.org/1999/xhtml">with html ns</node> 72 string(12) "with html ns" 73 string(12) "with html ns"
|
/php-src/ext/dom/ |
H A D | xpath_callbacks.h | 37 typedef void (*php_dom_xpath_callbacks_register_func_ctx)(void *ctxt, const zend_string *ns, const … 62 …r(php_dom_xpath_callbacks* registry, xmlXPathContextPtr ctxt, zend_string *ns, zend_string *name, … 63 …r(php_dom_xpath_callbacks* registry, xmlXPathContextPtr ctxt, zend_string *ns, zend_string *name, …
|
H A D | html5_parser.c | 141 uintptr_t entering_namespace = element->node.ns; in lexbor_libxml2_bridge_convert() 157 lxml_element->ns = current_lxml_ns; in lexbor_libxml2_bridge_convert() 202 if (attr->node.ns == LXB_NS_XMLNS) { in lexbor_libxml2_bridge_convert() 207 lxml_attr->ns = prefixed_xmlns_ns; in lexbor_libxml2_bridge_convert() 209 … lxml_attr->ns = php_dom_libxml_ns_mapper_ensure_prefixless_xmlns_ns(ns_mapper); in lexbor_libxml2_bridge_convert() 211 lxml_attr->ns->_private = (void *) php_dom_ns_is_xmlns_magic_token; in lexbor_libxml2_bridge_convert() 212 } else if (attr->node.ns == LXB_NS_XLINK) { in lexbor_libxml2_bridge_convert() 217 lxml_attr->ns = xlink_ns; in lexbor_libxml2_bridge_convert() 229 …name_length == 2 && local_name[0] == 'i' && local_name[1] == 'd' && attr->node.ns == LXB_NS_HTML) { in lexbor_libxml2_bridge_convert()
|
H A D | element.c | 220 xmlNsPtr ns; in dom_get_attribute_or_nsdecl() local 222 ns = elem->nsDef; in dom_get_attribute_or_nsdecl() 223 while (ns) { in dom_get_attribute_or_nsdecl() 227 ns = ns->next; in dom_get_attribute_or_nsdecl() 236 if (ns != NULL) { in dom_get_attribute_or_nsdecl() 522 if (cur == ns) { in dom_remove_attribute() 537 ns->next = NULL; in dom_remove_attribute() 669 nsp = attrp->ns; in dom_element_set_attribute_node_common() 1005 node->ns = NULL; in dom_remove_eliminated_ns_single_element() 1010 attr->ns = NULL; in dom_remove_eliminated_ns_single_element() [all …]
|
/php-src/ext/soap/tests/ |
H A D | bug68361.phpt | 10 …xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://foo.bar/test… 16 <xsd:attribute ref="soapenc:arrayType" arrayType="ns:Employee[]"/> 28 <xsd:element name="Employee" nillable="true" type="ns:Employee"/> 35 <xsd:element name="User" nillable="true" type="ns:User"/> 42 <part name="employeeReturn" type="ns:ArrayOfEmployeeReturn"/> 48 <part name="userReturn" element="ns:User"/>
|