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

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 UTC