3 ms·
What an awful idea: - first, it is not obvious whether an attribute affects something or not. How are you supposed to know what this or that attribute does? -
by codedokode 7y ago
What an awful idea:
- first, it is not obvious whether an attribute affects something or not. How are you supposed to know what this or that attribute does?
- second, if you made a typo, there is no error messages
- third, no there is no namespaces and attributes can conflict with attributes from other libraries
What's wrong with good old inline event handlers like onclick? With them you can just click a called function name and see its source.
- whoisjuan 7y ago> What's wrong with good old inline event handlers like onclick? With them you can just click a called function name and see its source. I haven't read the source of Alpine but I'm assuming the inline declarations are abstractions that are moved out of the DOM execution context and therefore can be cached. Real inline event handlers will actually be evaluated and executed in every page load, which will affect performance, especially with inside loops.