isaacs/sax-js — Issue #60: Unclosed root tag
Author: agentcooper
Created: 2012-02-06 10:19:17+00:00
State: open

```javascript
var sax = require("./lib/sax"),
parser = sax.parser(true);

parser.onend = function () {
console.log('end');
};

var xml = '';

parser.write(xml).close(); // first, no error
parser.write('' + xml + '').close(); // second, unclosed tag error
```

So is there any chance of getting an error in the first example for unclosed `````` tag without additional wrapping for my input (second example)?