Fix broken <script type="text/x-template"> in <template>.
Support more form elements.