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 <[email protected]>
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