Commit 8600c2a5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Ignore preventDefault calls for non-cancelable events.

parent a27ad40e
......@@ -1063,8 +1063,10 @@ static HRESULT WINAPI DOMEvent_preventDefault(IDOMEvent *iface)
TRACE("(%p)\n", This);
This->prevent_default = TRUE;
nsIDOMEvent_PreventDefault(This->nsevent);
if(This->current_target && This->cancelable) {
This->prevent_default = TRUE;
nsIDOMEvent_PreventDefault(This->nsevent);
}
return S_OK;
}
......
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