I can't find anything that says why `<button>` isn't included and a quick glance at the Git history of ngSanitize doesn't show `<button>` being added or removed, so I'm inclined to think it was a mistake too.
Go ahead and open an issue on Github. The worst thing that could happen is that it gets closed with an explanation at to why and, if that happens, I'd like to know what the reasoning is too! On Wed, Jan 22, 2014 at 5:19 PM, Jonathan Gawrych < [email protected]> wrote: > It's not depending on attributes (I tried it just to double check and it's > still stripped) > > The problem is that it is not in the list of "validElements" so it will > always be taken out (1.2.9: angular-sanitize.js: lines 178-206). > > The question is should I make a request to get this added? it seems like > it would be a common tag to use, so I'm skeptical that no-one else has > requested this tag before. > > > On Wednesday, January 22, 2014 5:55:01 PM UTC-7, Michael Bielski wrote: >> >> I've not used $santize, but we recently had a problem with <button> tags >> behaving differently in one browser (Firefox) than others. It turned out >> that some people had been coding lazily and were not putting in the type >> attribute. Setting that attribute to 'button' solved all of our issues (FF >> treats these as a type=submit, but everything else we use treats them as >> type=button.) This leads me to wonder if perhaps yours are missing the same >> attribute and are stripped because of that? Not having that tag would be a >> major re-write for our UI, so I hope that someone can shed some light on >> your situation. I have no particular fondness for the possibility of that >> re-write if we decide we need to use $sanitize (and we have considered it.) >> > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
