Commit 0af2a117 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added support for indexed access to form elements.

parent fa7c0882
......@@ -534,6 +534,20 @@ static HRESULT HTMLFormElement_get_dispid(HTMLDOMNode *iface,
return E_FAIL;
}
if(len > MSHTML_CUSTOM_DISPID_CNT)
len = MSHTML_CUSTOM_DISPID_CNT;
/* FIXME: Implement in more generic way */
if('0' <= *name && *name <= '9') {
WCHAR *end_ptr;
i = strtoulW(name, &end_ptr, 10);
if(!*end_ptr && i < len) {
*pid = MSHTML_DISPID_CUSTOM_MIN + i;
return S_OK;
}
}
nsAString_InitDepend(&nsname, nameW);
nsAString_Init(&nsstr, NULL);
for(i = 0; i < len; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment