Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wow, good timing. I had the same email and thoughts in the works. If I may, let me ask the question in a similar way:The Polymer TodoMVC example looks like this:<td-todos modelId="model"></td-todos>But I was expecting it to look like this:<todo-app><todo-item done>Learn Polymer</todo-item><todo-item>Make the web awesome</todo-item></todo-app>Why doesn't Polymer embrace the Light DOM more? Everything is in shadow dom, and as such as are hiding the semantic structure of the app.I want binding between my code data model and my DOM tree (when appropriate, like above). Should we not try to embrace the DOM more? I want to right click on a future email app and see this:<email-app><message><subject>...</subject><to>sadfadf</to></message></email-app>Instead of:<email-app>Thoughts?
On Wed, Sep 18, 2013 at 2:16 PM, Seth Ladd <seth...@google.com> wrote:
Wow, good timing. I had the same email and thoughts in the works. If I may, let me ask the question in a similar way:The Polymer TodoMVC example looks like this:<td-todos modelId="model"></td-todos>But I was expecting it to look like this:<todo-app><todo-item done>Learn Polymer</todo-item><todo-item>Make the web awesome</todo-item></todo-app>Why doesn't Polymer embrace the Light DOM more? Everything is in shadow dom, and as such as are hiding the semantic structure of the app.I want binding between my code data model and my DOM tree (when appropriate, like above). Should we not try to embrace the DOM more? I want to right click on a future email app and see this:<email-app><message><subject>...</subject><to>sadfadf</to></message></email-app>Instead of:<email-app>Thoughts?It does look nice. Some thoughts that come to mind for me:
- What would data binding look like in these examples?
- Is it possible to fetch the data from the server and/or local storage?
- How does the memory cost and access time of data-in-DOM compare to data-in-JavaScript-heap?
- Is it a problem that the Model is being mixed up in the View tree?
- Is it possible to fetch the data from the server and/or local storage?
Assuming I have bindings between child DOM nodes and my data model, I'm hoping data persistence just kinda works.
- How does the memory cost and access time of data-in-DOM compare to data-in-JavaScript-heap?
I'm assuming/hoping that there's data binding between child nodes in light dom and my data-in-JavaScript. This can be kept in sync much like how template bindings keep things in sync today.
- Is it a problem that the Model is being mixed up in the View tree?
Is there a difference? :) I do want more of the semantic structure of my app to appear in the light dom. But this is the philosophical question I have for this group.
- Is it possible to fetch the data from the server and/or local storage?
Assuming I have bindings between child DOM nodes and my data model, I'm hoping data persistence just kinda works.
- How does the memory cost and access time of data-in-DOM compare to data-in-JavaScript-heap?
I'm assuming/hoping that there's data binding between child nodes in light dom and my data-in-JavaScript. This can be kept in sync much like how template bindings keep things in sync today.If I am understanding, it sounds like you still want your data in JavaScript objects, but you also want it to be two way mirrored in the DOM tree. Does that sound right? What purpose does that serve? Is the idea to use HTML as a serialization language? It seems to