[Bug 10638] New: Unclear behavior specified for negative 'dimensional attributes'

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10638

           Summary: Unclear behavior specified for negative 'dimensional
                    attributes'
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: franko@microsoft.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


The 'width' and 'height' content attributes for MediaElements are specified as
"Dimension Attributes" (4.8.16)": 
http://www.w3.org/TR/html5/the-canvas-element.html#dimension-attributes

"The attributes, if specified, must have values that are valid non-negative
integers."

This links to 2.4.4.1:
http://www.w3.org/TR/html5/infrastructure.html#valid-non-negative-integer.
This indicates that if the value is negative, the parsing algorithm should
"return an error". 

Does this mean the attribute should be ignored, or it should be set to clamped
to zero, or some other behavior? 

Clamping to 0 is probably the best solution, as these objects should have
*some* defined width/height.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 15 September 2010 15:24:58 UTC