:::: MENU ::::

Rubicon Labs | Digital strategy, web and mobile development, UX, accessibility assessments and consulting.

Digital strategy, web and mobile development, UX, accessibility assessments and consulting

Make Your AngularJS Apps Pass W3C Validation

angularjs
Web Apps, Web Standards

Make Your AngularJS Apps Pass W3C Validation

We all love the enhanced user experience that the popular JavaScript framework AngularJS brings to our web apps but we also put great emphasis on writing accessible and standards-compliant code.

Unfortunately, the W3C HTML5 validator will flag the Angular’s default attributes of the form ng-attr. An easy way to fix the validation errors is to prefix all your AngularJS attributes with data-, so ng-app becomes data-ng-app, ng-controller becomes data-ng-controller and so on. There, now everyone is happy. 🙂

Contact us for a quote! Contact us