Shopify/batman — comment on commit e291388c2fcc94ae1af494d7a43aaf1fdf1b35e8
File:  line 0
By johnthethird:

I think that there are some problems with this implementation of escaping. I am wondering why we are setting the .innerHTML AND the .value of a textarea -- shouldn't we just set the value?

To demonstrate the problem, look at this [fiddle](http://jsfiddle.net/johnthethird/e529e/12/) which is using the shopify master branch. Try typing into the text area.

This [fiddle](http://jsfiddle.net/johnthethird/e529e/10/) has the same code but with my mods from [here](https://github.com/johnthethird/batman/commit/ba53a471f10ccb244de7e1184190885615f4f3e9) and this seems to be the expected behavior to me. If I am on the right track let me know and Ill try and create a patch with better tests.