Add support for the form attribute

This change adds support for the form attribute for domain names.