Thanks! This is one of those things that I thought I knew, so there was no point in googling it. I thought I was certain that I could use self-closing tags in HTML5. Looks like I was wrong.
I'm disappointed about this. It makes the HTML more verbose. I really don't want to write something like this: <my-cool-widget></my-cool-widget> On Tue, Jan 14, 2014 at 9:14 PM, Sander Elias <[email protected]> wrote: > Hi Mark, > > Because HTML5 does NOT allow '/>'!. This is not valid syntax! > > HTML5 !== XHTML. > > What happens is that your browser does ignore the slash, so your tag stays > open. As you don't close your tag, AngularJS doesn't come in action. When > you use it as an attribute, AngularJS gets called via another mechanism. > > If you want to know more about this, google around for it > <https://www.google.nl/search?q=html5+closing+tags&oq=html5+closin&aqs=chrome.1.69i57j0l5.9244j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8> > ;) > > Regards > Sander Elias > > -- > 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. > -- R. Mark Volkmann Object Computing, Inc. -- 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.
