Not HTML5 compliant?

3,859 views
Skip to first unread message

richard....@gmail.com

unread,
Apr 26, 2012, 11:00:43 AM4/26/12
to ang...@googlegroups.com
I really do not understand why the framework designers chose to make the markup completely non compliant with HTML 5.  If you want to use custom attributes, XHTML provides a standard way of doing so.   Is it really that difficult to declare a couple extra namespaces in the markup to include the XHTML namespace and a namespace for AngularJS with a prefix of ng?

I am disappointed.


David Marko

unread,
Apr 26, 2012, 12:21:04 PM4/26/12
to ang...@googlegroups.com
You can use naming based on 'data-' prefix like <button data-ng-click="save()">save</button> which is quite nice I think ..

David

Dne čtvrtek, 26. dubna 2012 17:00:43 UTC+2 richard....@gmail.com napsal(a):

Suller Andras

unread,
Apr 26, 2012, 12:33:04 PM4/26/12
to ang...@googlegroups.com
Don't be disappointed, you have several choices to use attributes or
elements, you can even use namespaces if you want to. Check out the
variants here:
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#1.0.0rc1

Andras

Dan Doyon

unread,
Apr 26, 2012, 1:22:14 PM4/26/12
to ang...@googlegroups.com
Removing the requirement for the namespace simplifies things but as Andras pointed out you can still use them. I'm somewhat of a purist myself but decided to go with the flow and now I just worry if I'm closing tags properly and let the validators and IDEs crimp. Angular is just too awesome to let these things bother IMHO.

--dan


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.



j.re...@gmail.com

unread,
Apr 26, 2012, 1:48:29 PM4/26/12
to ang...@googlegroups.com
Hi Richard,
this topic was discussed already last year:


This is my definition of AngularJs = The spirit of XHTML2 + The spirit of Flex/XForms pragmatically disguised in HTML 5 clothes :-)

Rusco

Misko Hevery

unread,
Apr 26, 2012, 2:45:35 PM4/26/12
to ang...@googlegroups.com
Hi Richard


In short if you don't like this: <button ng-click="..."> then just do this <button x-ng-click="..."> or this <button data-ng-click="..."> or even this <button ng:click="...">.

they all have their advantages and disadvantages. Chose what best fits your needs.

-- misko

On Thu, Apr 26, 2012 at 8:00 AM, <richard....@gmail.com> wrote:
I really do not understand why the framework designers chose to make the markup completely non compliant with HTML 5.  If you want to use custom attributes, XHTML provides a standard way of doing so.   Is it really that difficult to declare a couple extra namespaces in the markup to include the XHTML namespace and a namespace for AngularJS with a prefix of ng?

I am disappointed.

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/35YHu9au3zEJ.

To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.

Paul Hammant

unread,
Apr 26, 2012, 11:55:54 PM4/26/12
to ang...@googlegroups.com
It's great that Angular shifted from formal namespace to dashed-attributes (as a default). It means that Selenium can effectively functionally test app-stacks using it - http://paulhammant.com/2012/04/09/testing-knockout-and-angular-with-selenium2 whereas is it could not easily do so before because of the colons - http://paulhammant.com/2012/03/15/angular-and-selenium-again

- Paul

On Thu, Apr 26, 2012 at 5:00 PM, <richard....@gmail.com> wrote:
I really do not understand why the framework designers chose to make the markup completely non compliant with HTML 5.  If you want to use custom attributes, XHTML provides a standard way of doing so.   Is it really that difficult to declare a couple extra namespaces in the markup to include the XHTML namespace and a namespace for AngularJS with a prefix of ng?

I am disappointed.

richard....@gmail.com

unread,
Apr 27, 2012, 11:38:36 AM4/27/12
to ang...@googlegroups.com
Excellent.   My interest is renewed.  The front page of the site doesn't make this apparent hence my initial post.
So many choices these days... ember, knockout, angular  all interesting but of most importance is selecting one that will remain active for some time to come.
-- misko

To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages