-
Notifications
You must be signed in to change notification settings - Fork 22
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
TypeError: Cannot set property 'invalid' of null #7
Comments
Do you know how to reproduce this error? |
It's about Polymer setup, not the browser. Your code will work if Polymer use shady dom. However if you force to use shadow DOM this code will not work since elements will be encapsulated. <script type="text/javascript">
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script> This should cause the error. |
Okay. Got you. I am still learning the whole Polymer thing and wondering what is the use case to use shadow dom instead of shady dom? I know that in the version of 0.x, it is using shadow dom and then when the 1.0 version came out, they started to use shady dom. |
Eventually they will switch on using shadow DOM by default. It's just a matter of time. To see you work written more in Polymer way check my fork of your repository. I altered it couple of days ago. |
The changes are made in v1.2.2, using Polymer DOM API in order to support the element to work correctly both in shady dom and shadow dom. |
I receive following error:
It should not use following syntax:
var input = document.querySelector('#tag-input');
since it use shadow DOM.
If you replace it with:
var input = Polymer.dom(this.root).querySelector('#tag-input');
it will be working.
The text was updated successfully, but these errors were encountered: