handle html5 `form` attribute as a special case like `list`