[whatwg] Why are video's width & height DOMString?

Yaar Schnitman yaar at chromium.org
Thu Feb 4 23:03:04 PST 2010


Hi,

According to [1], the video's width & height attributes are DOMString, but
according to [2] width & height "must have values that are valid
non-negative integers".
Shouldn't they be long then?

Digging deeper, I found that video, iframe, embed and object all have
DOMString width & height attributes, but img specifies width & height to be
long [3]. For consistency, shouldn't all of them be the same?

Thanks,
Yaar

[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#video
<http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#video>
[2]
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-map-element.html#attr-dim-width
[3]
http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#the-img-element
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100204/a27b72b4/attachment-0002.htm>


More information about the whatwg mailing list