4 ms·
I think we should keep HTML simple and enforce a strict separation between template and logic. However, I do like the idea of adding a native "model" attribute
by daemonk 12y ago
I think we should keep HTML simple and enforce a strict separation between template and logic. However, I do like the idea of adding a native "model" attribute to the DOM element that can automatically get/parse json and update accordingly.
- smt88 12y agoHave you ever used React? What do you think about the React/Flux methods of mixing template and logic?
- daemonk 12y agoGood point. I do use react and I find jsx to be very convenient. I guess the question is: would I want to write something similar to JSX and have the browser be able to interpret that natively. I honestly don't know.
- smt88 12y agoYeah, I'm ambivalent myself. The main problem with W3 standards is that they assumed they knew what we'd want to do with them. No one predicted HTML would become the UI layer for complex replacements for desktop applications, so for a long time, it sucked at that job. Now they're trying to rectify those mistakes, but I think they might be going too far in the other direction. Instead, web standards need to be as simple, low-level, and generic as possible. The more HTML approaches an opinionated UI framework, the worse off we all are (in my opinion).