You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by cb...@apache.org on 2021/12/01 18:22:20 UTC
[velocity-tools] branch master updated: [tools] Fix VELTOOLS-193 : XML comments not accepted
This is an automated email from the ASF dual-hosted git repository.
cbrisson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-tools.git
The following commit(s) were added to refs/heads/master by this push:
new d5ecd32 [tools] Fix VELTOOLS-193 : XML comments not accepted
d5ecd32 is described below
commit d5ecd327d88ad0ea3b804eaf3ffb8c3e3f0d23d6
Author: Claude Brisson <cl...@renegat.net>
AuthorDate: Wed Dec 1 19:22:16 2021 +0100
[tools] Fix VELTOOLS-193 : XML comments not accepted
---
.../src/main/java/org/apache/velocity/tools/XmlUtils.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/velocity-tools-generic/src/main/java/org/apache/velocity/tools/XmlUtils.java b/velocity-tools-generic/src/main/java/org/apache/velocity/tools/XmlUtils.java
index 285f437..99cb39e 100644
--- a/velocity-tools-generic/src/main/java/org/apache/velocity/tools/XmlUtils.java
+++ b/velocity-tools-generic/src/main/java/org/apache/velocity/tools/XmlUtils.java
@@ -471,9 +471,8 @@ public final class XmlUtils
case Node.ATTRIBUTE_NODE:
parent = ((Attr) n).getOwnerElement();
break;
+ case Node.COMMENT_MODE:
case Node.ELEMENT_NODE:
- parent = n.getParentNode();
- break;
case Node.DOCUMENT_NODE:
parent = n.getParentNode();
break;