Corner case with attributes in non-strict mode

You may have skipped this one for some reason, I'm not sure; I need it though, so I wrote it. You can have it if you want :)