This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For compatibility and interoperability it would seem far safer to not throw an exception when createPattern(canvas, null) is used. In the below list of browsers that treat this as a 'repeat' e.g. createPattern(canvas, 'repeat'). The previous version of the spec had a normative statement that matched the majority of browsers. The latest version of the spec changed this normative statement. Previous Spec 'If the empty string or null is specified, repeat must be assumed. If an unrecognized value is given, then the user agent must raise a SYNTAX_ERR exception' Current working draft has changed to 'If the empty string is specified, repeat must be assumed. If an unrecognized value is given, then the user agent must raise a SYNTAX_ERR exception.' Treats null as 'repeat' Firefox 13.1 Internet Explorer 9 Chrome 20 Opera 12 does indeed raise an exception when passed 'null' Test Case http://www.w3c-test.org/html/tests/submission/PhilipTaylor/canvas/2d.pattern.repeat.null.html Related Bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=17141
Nightly also throws.
This bug was cloned to create bug 17891 as part of operation convergence.
Filter on [Idon'tcareaboutHTMLWGbugspam].
This was a result of an update to the IDL, see: https://www.w3.org/Bugs/Public/show_bug.cgi?id=10640 I'm unsure if this was an intended change. Pinged the writer of the patch.
(In reply to comment #4) > This was a result of an update to the IDL, see: > https://www.w3.org/Bugs/Public/show_bug.cgi?id=10640 > > I'm unsure if this was an intended change. Pinged the writer of the patch. Cameron McCormack says that this was an accidental change. This should be reverted to the previous behavior.
Fixed. https://github.com/w3c/html/commit/0bb4926b0be517ff9cf5bff835dcf293966350d8
(Please note that the WHATWG spec will not be taking this change, as it does not lead towards interop and is a technically worse state for the spec to be in.)