fixed more cases where webkit diverges from the current spec.