Re: From Frozen to unfrozen state. hmm

Boris Zbarsky <[email protected]> Sun, 19 Sep 2010 22:26:38 -0400
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 9/19/10 10:25 PM, Boris Zbarsky wrote:
>> If you need to extent “nsIDOMHTMLImageElement” after it has been
>> declared frozen why not implement “nsIDOMHTMLImageElement2” and
>> inherit from “nsIDOMHTMLImageElement”?
>
> Because that increases the complexity of the platform, slows down access
> to both interfaces from JavaScript, and doesn't work for non-additive
> changes.

And to be clear, this particular interface isn't even one we control, so 
freezing it made no sense to start with.  It's the "HTMLImageElement" 
interface in the DOM 2 HTML or HTML5 specification.  It needs to change 
every time the latter changes.

-Boris