I think you can simplify this like `"_moz-type" in keygen.attributes`, since it's very likely to ever exist in a valid firefox situation.