Merge pull request #622 from 2is10/xhtml_compatibility

closing tags and using valid XML escape sequences to avoid JS errors on XHTML pages
Merge pull request #577 from 2is10/input_width_zero

working around webkit bug where zero-area input loses focus
Revert "Don't cut off placeholder text in input field."

This reverts commit de7ff6fad4d67f9b95500edebb32ece3efc5df22.
grow input after last token is deleted so placeholder can be seen