Fix the attribute parsing test failures

Now that we validate attribute names more strictly, we need a similar workaround for them as we have for element names.

This will all get cleared up decently when #922 is fixed.