allow attribute with a hyphen

this fixes #1