diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-04 20:43:52 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-04 20:43:52 +0100 |
| commit | b6382a573f8d942c39b7bd954569718baef97465 (patch) | |
| tree | aba367fe25f4c3f664322680fc5d49c5273a3acf | |
| parent | c4a46e00f86898a2994d4cf5a26e3a7ae56e7759 (diff) | |
| parent | c771d2fc0bb344cc97876e50b1c11748162bb7f6 (diff) | |
| download | redot-engine-b6382a573f8d942c39b7bd954569718baef97465.tar.gz | |
Merge pull request #89141 from timothyqiu/xml-node-name
Fix documentation of `XMLParser::get_node_name()`
| -rw-r--r-- | doc/classes/XMLParser.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/XMLParser.xml b/doc/classes/XMLParser.xml index 36795852e0..b6dd7a74f8 100644 --- a/doc/classes/XMLParser.xml +++ b/doc/classes/XMLParser.xml @@ -91,7 +91,8 @@ <method name="get_node_name" qualifiers="const"> <return type="String" /> <description> - Returns the name of an element node. This method will raise an error if the currently parsed node is not of [constant NODE_ELEMENT] or [constant NODE_ELEMENT_END] type. + Returns the name of a node. This method will raise an error if the currently parsed node is a text node. + [b]Note:[/b] The content of a [constant NODE_CDATA] node and the comment string of a [constant NODE_COMMENT] node are also considered names. </description> </method> <method name="get_node_offset" qualifiers="const"> |
