|
|
|
|
|
by bill-nordwall
5122 days ago
|
|
Thanks for the info! Although, forgoing "data-" prepending by default in the interest of saving a few bytes doesn't seem like a good tradeoff. If you have any HTML5 validation as part of your testing process, not having valid attributes is going to throw a whole mess of errors that you'll have to ignore. |
|
Validation of your attributes is fairly meaningless, and if you have a decent validator setup as part of your workflow (save-time or build-time - I personally wouldn't bother with either), then you should be able to customise it to turn off silly errors. You could also pre-process your JS files as part of your build step to replace ng-* with data-ng-* if it really meant that much to you. The byte-saving doesn't matter of course, but it seems like extra typing and more repetition in your templates for zero benefit.
[1] https://groups.google.com/forum/?fromgroups#!msg/html5boiler...
[2] http://www.nczonline.net/blog/2010/08/17/the-value-of-html-v...