DescriptionImage() constructor's arguments should not have default values
Implementing them with [Default=Undefined] is equivalent to implementing
them with zero as the default value, which is semi-correct; the created
element's 'width' and 'height' IDL attributes should be zero.
However, per spec, calling Image() without the arguments should create
an element without the 'width' and 'height' content attributes, whereas
calling Image() with the arguments should create an element with the
content attributes, including if the argument values were zero. Thus we
need to distinguish between no argument and argument being zero.
BUG=253777
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187973
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|