This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10638 - Unclear behavior specified for negative 'dimensional attributes'
Summary: Unclear behavior specified for negative 'dimensional attributes'
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 15:24 UTC by Frank Olivier
Modified: 2010-10-04 14:46 UTC (History)
4 users (show)

See Also:


Attachments

Description Frank Olivier 2010-09-15 15:24:56 UTC
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.
Comment 1 Ian 'Hixie' Hickson 2010-09-28 22:32:40 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It depends on what the algorithm that invokes the parsing algorithm says to do when the parser returns an error.

Please don't confuse author conformance criteria ("must have values that are valid non-negative integers") with anything to do with user agent conformance criteria. They are separate.