Re: HTMLIFrameElement.width and height

Ian Hickson wrote:
> On Tue, 17 Aug 2010, Nathan wrote:
>> Noted that HTMLIFrameElement.width and height are specified as 
>> DOMString, whilst on other HTMLElements like HTMLImageElement they are 
>> 'unsigned long' - is there a reason for this or is it a minor bug?
> 
> A lot of things like this exist, unfortunately. They're mostly that way 
> for historical reasons and can't be changed without breaking 
> compatibility with legacy content.
> 

Okay cheers, after a quick check all width/height properties are 
actually DOMString except for:
   HTMLImageElement
   HTMLCanvasElement
   HTMLPreElement

Would it make sense to bring those three interfaces in line and set to 
DOMString too?

Best,

Nathan

Received on Tuesday, 17 August 2010 22:46:41 UTC