Dispatch image load events synchronously when it completes immediately in pre IE9 modes.
Similar to the fix in wine!1598 (merged) for image elements, we'll have to distinguish between loaded and error so we know which event to send and ignore. There is no naturalHeight
for input elements, and since complete
is wine-gecko specific to begin with, we can just replace it right now to provide this information to the caller.
Sorry I didn't realize this before.