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

Reply via email to