bitovi/canjs — pull request #317 by scorphus (2013-03-15 02:35:29+00:00)
Title: Pop from tagNames only at the right time

The scanner wrongly adds ```data-view-id='X'``` to a tag close ``````.

In EJS, for example, if you have:

``` ejs

<% can.each(this.items, function(item) { %>

el.data('item', item) %>>
<%= item.title %>

<% }) %>

```

it gets wrongly rendered:

``` html

One

Two

```

It goes the same with Mustache. The bug can be seen in [this fiddle](http://jsfiddle.net/scorphus/QvhHA/ "Buggy"). And the fix is available in [this fiddle](http://jsfiddle.net/scorphus/QvhHA/1/ "Fixed").