W3C home > Mailing lists > Public > public-html-comments@w3.org > August 2010

Re: HTMLIFrameElement.width and height

From: Nathan <nathan@webr3.org>
Date: Tue, 17 Aug 2010 23:45:48 +0100
Message-ID: <4C6B111C.2070606@webr3.org>
To: Ian Hickson <ian@hixie.ch>
CC: public-html-comments@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:04 GMT