Add textarea parse tests

Test for bugs reported by Andrew and Vincent, concerning parsing of dynamic attributes and contents of textarea.