-
Notifications
You must be signed in to change notification settings - Fork 73
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
dommy breaks when Polymer is in use #67
Comments
Unfortunately neither chrome nor firefox are giving a traceback for this error, so it's really hard to track down. |
Sorry I never got back to you on this issue. So, the question is, whose responsibility is this incompatibility? Should Dommy work around it, or should this be filed as a bug against Polymer? Do you have any opinions on that? |
Good question. I don't think polymer will fix that as it's a deliberate trade-off for performance reason (I believe). On the other hand I guess your best option is not to use dommy to select (dommy/append! js/document.body "foo") |
Hmm, not sure why you're getting that issue as |
Ah sorry, I re-read your initial comment.. the issue is in The parent node in append! gets "coerced" to a node with |
I believe this might help understanding the issue. |
FYI I got this issue and fixed it by using I don't think there is any other option when using polymer's polyfill as using |
I have no idea whose fault this is, but I want to file the ticket so it's at least known. Whenever I have polymer enabled in Chrome, (dommy/append! (sel1 :body) "foo") fails, with the following error:
"Don't know how to make node from: #<[object HTMLBodyElement]>"
If I use (sel1 :#mybod) (or some other way to get the body), it works.
Maybe Polymer somehow changes the semantics of "document.body"?
To be specific, I'm only including Polymer's platform/platform.js in order to get this behavior.
The text was updated successfully, but these errors were encountered: