Re: [web-anim] API feedback

|  As far as I can tell, this is specific to Safari (in Chrome,
|  document.createElement('img').__proto__ gives me
|  HTMLImageElement).

Actually IE, Opera and Safari share their implementation on this matter. 
Only Chrome and Firefox differs. FireFox returns the not very informative 
XPC_WN_ModsAllowed_NoCall_Proto_JSClass and Chrome indeed returns the class 
name of the element, not the one of the prototype.

I just had a read into the WebIDL spec and both Firefox anc Chrome behaviors 
are not valid according to the spec, btw:

##  The class string of an interface prototype object
##  is the concatenation of the interface’s identifier
##  and the string “Prototype”. 

Received on Monday, 6 August 2012 06:55:51 UTC