(We need this in KHTML to avoid retaining quite so many wrappers). The attached diff adds a couple of calls to check whether the object has something in its property map. Suggestion for better method names are more than welcome.
Created attachment 5344 [details] patch
I don't think an API name should refer to internal implementation such as a "PropertyMap." How about hasProperties() or hasAnyProperties()? Or is this API designed specifically to glean information about the property map?
Well, it excludes dynamic properties, so hasProperties isn't entirely accurate.... The point is that you don't strictly have to retain DOM wrapper objects around unless they have some JS properties set. (Recreating them can be slower in the `normal' case but it avoids some really bad cases)
Hmm, actually, I just noticed that _prop is protected, so all I need is the PropertyMap::isEmpty accessor.
Is this still an issue? This bug hasn't been touched in over a year. I would assume this can be closed.
Seems so.