I found another annoying Safari bug today. If you dynamically write an empty textarea
element into a page, Safari self-closes the tag. This is illegal with a textarea
tag. Safari actually knows it’s illegal since the next time you try to write one, it has to close the first one before opening the second one… it’s a mess.
Here is the test case.
The work-around I’m using is to write the textarea with a space in it, then remove the space afterward.