angularjs - Should I care about W3C validation? -


i'm learning angularjs , found simple code one:

<!doctype html> <html>    <head>     <meta charset='utf-8'> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script> </head> <body ng-app ng-init="name = 'world'">     <h1>hello, {{name}}!</h1> </body> </html> 

does not pass w3c validation test, because there non standard attributes (ng-app, ng-init).

the question is: should care w3c validation of application? should abandon angularjs?

you use data- html5 attribute standard , far know works same angular. like:

data-ng-app="" data-ng-init="xxx" 

will work same in angular , validated w3c.

look @ this: ng-app vs. data-ng-app, difference?

aside that, experience working standards better when product delivered possible large crowd (so you'r building website or public webapp , on) different clients, versions etc. if you're building spa using angular , maybe phonegap create mobile app installed on mobile devices native app, standard not important, important thing work on target devices.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -