Skip to content

Polymer makes getScreenCTM() crash #351

Closed
@jorgehatccrma

Description

When including polymer in a web page, the SVGElement getScreenCTM() method crashes with the following stack trace:

TypeError {stack: "TypeError: Illegal invocation↵    at b.<anonymous>…auser/libs/polymer.min.js:32:25185)"}
 "TypeError: Illegal invocation
    at b.<anonymous> (http://localhost/~auser/webCompTest.html:20:27)
    at v (http://localhost/~auser/libs/polymer.min.js:32:26221)
    at t (http://localhost/~auser/libs/polymer.min.js:32:25576)
    at r (http://localhost/~auser/libs/polymer.min.js:32:25321)
    at SVGRectElement.q (http://localhost/~auser/libs/polymer.min.js:32:25185)" polymer.min.js:32

I'm running Google Chrome 31.0.1650.48 on Mac OS X 10.7.5.

The bug can be reproduced with this gist. If the offending line (line 6) is commented out, the code works ok, but if polymer is included (even without "using it"), the code crashes with the afore mentioned trace.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions