W3C home > Mailing lists > Public > public-fx@w3.org > July to September 2012

Re: [web-anim] API feedback

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Mon, 6 Aug 2012 08:55:24 +0200
Message-ID: <3A5A1F42113C4FAAA44EBA004DCDB250@FREMYD2>
To: "Brian Birtles" <bbirtles@mozilla.com>
Cc: <public-fx@w3.org>
|  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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:42 UTC