Bug 17141 - 2d.pattern.repeat.null is bogus
2d.pattern.repeat.null is bogus
Status: NEW
Product: HTML WG
Classification: Unclassified
Component: testsuite
All All
: P2 normal
: ---
Assigned To: Ms2ger
HTML WG Bugzilla archive list
: needs-testcase
Depends on:
  Show dependency treegraph
Reported: 2012-05-21 17:24 UTC by Ms2ger
Modified: 2013-09-14 06:38 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ms2ger 2012-05-21 17:24:30 UTC


var pattern = ctx.createPattern(img, null);

null is converted into the string "null", so per <http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-createpattern> "If an unrecognized value is given, then the user agent must throw a SyntaxError exception.", this should throw.
Comment 1 Ms2ger 2012-06-15 19:11:14 UTC


Please review.
Comment 2 Ian 'Hixie' Hickson 2013-09-14 04:09:40 UTC
I changed the WHATWG spec on this, since the browsers didn't align. r8187 :-(

I blame the W3C fork for this, it caused confusion, as usual.
Comment 3 Michael[tm] Smith 2013-09-14 06:38:43 UTC
Adding "needs-testcase" keyword; http://w3c-test.org/testrunner/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.null.html needs to be updated. Perhaps that amounts to backing out https://github.com/w3c/web-platform-tests/commit/398c348ab9827a450a2e6a3e15e9676ee8b6892a ?