Saturday, 20 June 2009

KDE/kdelibs/khtml/ecma

SVN commit 984521 by orlovich:

Add [[Get]] on NamedNodeMap

BUG:196409
CCBUG:195192


M +5 -0 kjs_dom.cpp


--- trunk/KDE/kdelibs/khtml/ecma/kjs_dom.cpp #984520:984521
@@ -1567,6 +1567,11 @@
return true;
}

+ // See if it's an item name get
+ DOM::NodeImpl* attr = impl()->getNamedItem(propertyName.ustring().domString());
+ if (attr)
+ return getImmediateValueSlot(this, getDOMNode(exec, attr), slot);
+
//May be it's an index?
if (getIndexSlot(this, *m_impl, propertyName, slot))
return true;

0 comments: