[whatwg] question on @width and @height attributes on <video>
silviapfeiffer1 at gmail.com
Sun Nov 7 23:27:30 PST 2010
I am staring at the @width and @height attributes of the <video>
element, because I have just noticed that the implementation of IE9
doesn't respect percentage values in there. I remembered Hixie saying
that if you gave them a value that included "px", that's strictly
speaking not valid, since the value is a unsigned long but a browser
will just drop the "px" and interpret it correctly.
I am now wondering if a percentage value is correct, since the percent
sign isn't part of unsigned long either. I have followed the links
through to the parsing part for dimension values, which I think
. So, IIUC, percentage values are correct. But that doesn't seem to
agree with "unsigned long".
Why do we have this requirement of @width and @height being unsigned
long and not DOMString as for iframe, embed and object? <img> seems to
share the same fate, such that I am confused whether a percentage
value on @width and @height attributes on <img> are not allowed any
Essentially, I am wondering if IE has implemented this correctly or
whether this is still a bug they will have to fix, and whether
percentages are indeed correct withing the given specification.
More information about the whatwg