CDATA nodes' content can only be retrieved using XMLParser.get_node_name()
.
#89120
Labels
Milestone
XMLParser.get_node_name()
.
#89120
Tested versions
Reproducible on 4.2.1 (and it seems ever since 3.5 at least, #65416 )
System information
Godot v4.2.1.stable - Android - GLES3 (Compatibility) - Mali-G52 - (8 Threads)
Issue description
From #65416:
get_node_name()
currently saysBut in practice does not for
NODE_CDATA
nodes and instead returns CDATA content. As it seems like fair amount of people already rely on this, (aside from correcting documentation, of course) i propose to soft-deprecate the current behaviour and instead makeget_node_data()
responsible for returning CDATA nodes' content.Steps to reproduce
Download the test project and run it. It will print the following (excluding the arrow note):
Minimal reproduction project (MRP)
xmlcdata.zip
The text was updated successfully, but these errors were encountered: