Re:Intercooler.js – Making AJAX as easy as anchor tags
by whostolemyhat on Monday November 07, 2016 @08:44AM
(#12890911)
Why did you choose to use a custom attribute rather than a `data-` one?
[ Parent
| on HN ]
Re:Intercooler.js – Making AJAX as easy as anchor tags
by carsongross on Monday November 07, 2016 @05:23PM
(#12895779)
I like how custom attributes look better, when I saw how Angular was using them.
You can use the data-prefix though if you want by including the following meta tag:
<meta name="intercoolerjs:use-data-prefix" content="true"/>
Re:Intercooler.js – Making AJAX as easy as anchor tags
by whostolemyhat on Wednesday November 09, 2016 @06:37AM
(#12909384)
I know it's largely hypothetical, but by not using data-, aren't you running the risk of namespace collisions in future? data- attributes are guaranteed not to ever have an 'official' version that the browser expects, while anything else may exist in the future.