I would like to avoid parsing attributes at this point, but I see the issue. This should also be fixable via something like

```js
if((name in emptyTags && !this._options.xmlMode) || (data.substr(-1) === "/" && data.replace(_reAttrib, "").substr(-1) === "/")){
```