Slightly tweak attribute selector scanning.