Stop using `str.trim()` in template tests

It's not defined in IE8.
Don't try testing the HTML tokenizer on the client
Reactive SELECT tags work in all browsers.