Interesting, it seems the issue is in using the element directive syntax in <head>. Plunk: http://plnkr.co/edit/DTbGsyp7CnpO5M7mYXkb?p=preview
Swap the element usage of that test directive for the attribute usage and you’ll see that the content stays in <head> where it belongs. This seems to be browser behavior and nothing to do with Angular: if the browser sees illegal elements in <head>, it just moves them to <body> where it expects you meant to put them. I’m sure it’s all in the html spec but I’m not going to look for it, that sounds boring. -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.