W3C home > Mailing lists > Public > public-html@w3.org > July 2007

HTMLImageElement.width / height (detailed review of Semantics)

From: Simon Pieters <simonp@opera.com>
Date: Sun, 15 Jul 2007 23:16:02 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.tviynyuzidj3kv@hp-a0a83fcd39d2>

(This is part of my detailed review of the Semantics and structure of HTML  
elements section.)

Shouldn't the HTMLImageElemnet.width and height attributes be unsigned  
long instead of long? They are in Opera, Safari and Firefox. In IE, they  
are unsigned long limited to only positive non-zero numbers.

    http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cimg%20width%3D-1%3E%3Cscript%3Ew%28document.body.firstChild.width%29%3C/script%3E

-- 
Simon Pieters
Opera Software
Received on Sunday, 15 July 2007 21:16:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:47 UTC