Permalink
Browse files

Does not call isNumeric() with QName from xml.js

  • Loading branch information...
1 parent 5edd95d commit 6760ee729958e6d36431307e0c7f80f674a0b413 @yurydelendik yurydelendik committed Mar 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/avm2/xml.js
View
@@ -919,7 +919,7 @@ var isXMLType, isXMLName, XMLParser;
this.resolveMultinameProperty(mn.namespaces, mn.name, mn.flags);
return this[Multiname.getQualifiedName(resolved)];
}
- if (isNumeric(mn)) {
+ if (!Multiname.isQName(mn) && isNumeric(mn)) {
// this is a shortcut to the E4X logic that wants us to create a new
// XMLList with of size 1 and access it with the given index.
if (Number(0) === 0) {
@@ -961,7 +961,7 @@ var isXMLType, isXMLName, XMLParser;
this.resolveMultinameProperty(mn.namespaces, mn.name, mn.flags);
return !!this[Multiname.getQualifiedName(resolved)];
}
- if (isNumeric(mn)) {
+ if (!Multiname.isQName(mn) && isNumeric(mn)) {
// this is a shortcut to the E4X logic that wants us to create a new
// XMLList with of size 1 and access it with the given index.
if (Number(0) === 0) {

0 comments on commit 6760ee7

Please sign in to comment.