Re: Request to include missing HTML tag interface specs in html5.idl

On Jul 15, 2009, at 3:37 PM, Ian Hickson wrote:

>
>> So, perhaps here may be the solution. W3C might "officially"  
>> provide an
>> IDL file with these interfaces separately from html5.idl.
>
> Why would we want multiple conflicting IDLs?
>
>
> I don't really understand why we would need different element types to
> have different interfaces. You can tell what kind of element an  
> object is
> based on its tag name. Would we give every different element in XML  
> its
> own interface?

I can imagine a marginal benefit to empty interfaces: it makes it  
easier for libraries to add extra JavaScript methods to only a  
particular element. On balance, though, I don't think it's worth it.

Regards,
Maciej

Received on Wednesday, 15 July 2009 22:49:14 UTC