You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/06/27 09:40:10 UTC

[royale-asjs] branch develop updated: text elements don’t have name()

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 18b70a1  text elements don’t have name()
18b70a1 is described below

commit 18b70a1ada0faaa10c559bf712274ff63b724728
Author: Harbs <ha...@in-tools.com>
AuthorDate: Thu Jun 27 12:39:54 2019 +0300

    text elements don’t have name()
---
 frameworks/projects/XML/src/main/royale/XML.as | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frameworks/projects/XML/src/main/royale/XML.as b/frameworks/projects/XML/src/main/royale/XML.as
index 0b3f93d..4945147 100644
--- a/frameworks/projects/XML/src/main/royale/XML.as
+++ b/frameworks/projects/XML/src/main/royale/XML.as
@@ -1852,6 +1852,9 @@ package
 			len = childrenLength() - 1;
 			for(i=len;i>=0;i--)
 			{
+				if(_children[i].nodeKind() != "element"){
+					continue;
+				}
 				if(_children[i].name().matches(name))
 				{
 					child = _children[i];
@@ -1860,6 +1863,7 @@ package
 					removedItem = true;
 				}
 			}
+			normalize();
 			return removedItem;
 		}
 		public function removeChildAt(index:int):void