From c771d2fc0bb344cc97876e50b1c11748162bb7f6 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 4 Mar 2024 20:58:24 +0800 Subject: [PATCH] Fix documentation of XMLParser::get_node_name() --- doc/classes/XMLParser.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/XMLParser.xml b/doc/classes/XMLParser.xml index 36795852e07..b6dd7a74f85 100644 --- a/doc/classes/XMLParser.xml +++ b/doc/classes/XMLParser.xml @@ -91,7 +91,8 @@ - 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.