1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext
Niels Dossche c473787abb Fix GH-10234: Setting DOMAttr::textContent results in an empty attribute value
We can't directly call xmlNodeSetContent, because it might encode the string
through xmlStringLenGetNodeList for types
XML_DOCUMENT_FRAG_NODE, XML_ELEMENT_NODE, XML_ATTRIBUTE_NODE.
In these cases we need to use a text node to avoid the encoding.
For the other cases, we *can* rely on xmlNodeSetContent because it is either
a no-op, or handles the content without encoding and clears the properties
field if needed.

The test was taken from the issue report, for the test:
Co-authored-by: ThomasWeinert <thomas@weinert.info>

Closes GH-10245.
2023-05-29 14:10:59 +02:00
..
2022-06-25 07:39:55 +01:00
2023-04-19 16:23:52 +02:00
2022-07-27 12:13:32 +02:00
2023-03-01 23:02:03 +01:00
2022-09-13 11:33:09 +01:00
2022-04-25 14:29:44 +02:00
2023-03-27 16:33:36 +02:00
2022-06-13 14:43:51 +02:00
2022-12-18 23:20:29 -07:00
2023-03-27 16:33:36 +02:00
2023-04-27 18:50:09 +02:00
2023-03-01 23:02:03 +01:00
2023-03-27 16:33:36 +02:00