[PATCH v11 06/10] mshtml: Associate props with attributes for IE8 mode, but keep them stringified.

Jacek Caban jacek at codeweavers.com
Tue Nov 30 14:59:28 CST 2021


Hi Gabriel,

On 11/29/21 5:31 PM, Gabriel Ivăncescu wrote:
> +static inline WCHAR *translate_attr_name(WCHAR *attr_name, compat_mode_t compat_mode)
> +{
> +    WCHAR *ret = attr_name;
> +
> +    if(compat_mode >= COMPAT_MODE_IE8 && !wcsicmp(attr_name, L"class"))
> +        ret = (WCHAR*)L"className";
> +    return ret;
> +}


Please avoid this cast.


> +                if(get_dispid_type(dispid) == DISPEXPROP_BUILTIN) {
> +                    VariantClear(AttributeValue);
> +                    V_VT(AttributeValue) = VT_NULL;
> +                    return S_OK;
> +                }


It's not right in general, see the attached test. I'm not expecting that 
you implement all those IE8-specific things (in fact, I don't think we 
need to care too much about it), but the patch in its current shape can 
break things. Could you just remove this if() and live todo_wines?


Thanks,

Jacek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20211130/0879a2ee/attachment.bin>


More information about the wine-devel mailing list