I fixed the parsing of single-quoted attribute names

You don't necessarily have to pull this if you don't want it, but I figured I'd make it available in case you (or someone else) did.