Support for form attribute in element added. fixed #157, fixes #159