allow attribute with a hyphen

this fixes #3