-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymer.dom(parent).querySelector polyfill is broken in 0.8 #1540
Comments
Note that this was in firefox. It seems like queryselector just doesn't work at all, Polymer.dom(this.root).querySelector('blah /deep/ blah') also produces errors. SyntaxError: An invalid or illegal string was specified |
querySelector is working fine for me. The first error sounds like the node you're working on ( The second error is because Firefox doesn't support native shadow DOM, so it doesn't recognize /deep/ as a valid selector. |
What would be correct way to do /deep/ selectors in firefox then? Do you detect if the browser has shadow dom support and remove the deep selector? As for parent is undefined, when can that occur? window.parent points to itself by default. I also tried it again, parent is not undefined. |
The argument to As far as |
Trying to use the polyfill and I'm currently unable to querySelector/querySelectorAll with webcomponents-lite
I get an error:
Polymer.dom(parent).querySelectorAll('*')
TypeError: undefined is not an object (evaluating 'Array.prototype.slice.call(b)')
The text was updated successfully, but these errors were encountered: