Lines Matching refs:attribute
2 GH-10234 (Setting DOMAttr::textContent results in an empty attribute value.)
8 $document->loadXML('<element attribute="value"/>');
9 $attribute = $document->documentElement->getAttributeNode('attribute');
14 var_dump($attribute->textContent);
16 $attribute->textContent = 'new value';
17 var_dump($attribute->textContent);
20 $attribute->textContent = 'hello & world';
21 var_dump($attribute->textContent);
24 $attribute->textContent = '<b>hi</b>';
25 var_dump($attribute->textContent);
28 $attribute->textContent = 'quote "test"';
29 var_dump($attribute->textContent);
32 $attribute->textContent = "quote 'test'";
33 var_dump($attribute->textContent);
36 $attribute->textContent = "quote '\"test\"'";
37 var_dump($attribute->textContent);
60 string(38) "<element attribute="value"></element>
64 string(42) "<element attribute="new value"></element>
67 string(50) "<element attribute="hello & world"></element>
70 string(54) "<element attribute="<b>hi</b>"></element>
73 string(45) "<element attribute='quote "test"'></element>
76 string(45) "<element attribute="quote 'test'"></element>
79 string(57) "<element attribute="quote '"test"'"></element>
83 string(74) "<element attribute="quote '"test"'">hello & world</element>
86 string(78) "<element attribute="quote '"test"'"><b>hi</b></element>
89 string(69) "<element attribute="quote '"test"'">quote "test"</element>
92 string(69) "<element attribute="quote '"test"'">quote 'test'</element>