Fix bug in added support for "for" attributes in HTML forms - refs #7063