W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2012

[Bug 17760] New: createPattern(canvas, null) now throws rather than 'repeat'

From: <bugzilla@jessica.w3.org>
Date: Thu, 12 Jul 2012 15:56:20 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-17760-2486@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17760

           Summary: createPattern(canvas, null) now throws rather than
                    'repeat'
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML Canvas 2D Context
        AssignedTo: ian@hixie.ch
        ReportedBy: krisk@microsoft.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


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

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 12 July 2012 15:56:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 July 2012 15:56:22 GMT