I think I'd reverse these two:

```
if (tag in notCloseable ||
    iterator.stepBackward().value.match('/')) {
```