Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2215970.Xz8ohhYffB@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 01 Jun 2013 11:55:40 +0200 User-Agent: KNode/4.10.2 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <29791032.XE3BKoFSiS@PointedEars.de> <6560842.YUYWtJiLuI@PointedEars.de> MIME-Version: 1.0 Lines: 114 NNTP-Posting-Date: 01 Jun 2013 11:55:44 CEST NNTP-Posting-Host: ec955509.newsspool1.arcor-online.net X-Trace: DXC=9LAi4h@V4L8=FQB?mjjV50ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@0>32E0LlHXP;DZm8W4\YJN On 31/05/2013 11:12 PM, Thomas 'PointedEars' Lahn wrote: >> Andrew Poulos wrote: >>> On 30/05/2013 8:12 PM, Thomas 'PointedEars' Lahn wrote: >>>> Andrew Poulos wrote: >>>>> On 30/05/2013 12:54 PM, Andrew Poulos wrote: >>>>>> >>>>>> >>>>>> >>>>>> […] >>>>>> >>>>>> >>>>>> >>>>>>

Starts here:

>>>>>> >>>>>> >>>>>> >>>>>> onmouseup will fail to trigger in IE 9 by dragging the pointer to an >>>>>> new location and waiting a second or two before releasing the left >>>>>> mouse button. I couldn't get IE 7 or 8 (or any other browser) to fail >>>>>> in this manner. How can I get IE 9 to behave? >>>>> […] It works when the pointer stays as an arrow but fails when (for >>>>> some reason) the pointer changes to a circle with a diagonal line >>>>> through it. >>>> That cursor shape indicates that the element is not a proper >>>> drag-and-drop target. You are using HTML5 which is (partially) >>>> supported from IE/MSHTML 9 on. There are specific events for drag-and- >>>> drop, andthey have been standardized with HTML5; use your current >>>> approach only as a fallback. >>> […] Unfortunately I didn't find IE9 behaving any better [with >>> [ondragend]. That is, the onmousedown would always trigger and the >>> onmouseup and ondragend would not always trigger. >>> >>> Well-referenced sites like >>> >>> fail in IE9 with "show errors" on :-( >> >> “"show errors" on”? And the referenced site uses HTML5-specific >> techniques > > Tools > Internet Options > Advanced > Display a notification about every > script error So, what script errors are you getting and when *exactly* do they occur there? >> that need not to work in IE 9. > > Hmm, the page has a HTML4 type doctype > > "http://www.w3.org/TR/html4/strict.dtd"> While it is possible that the wrong doctype/DOCTYPE declaration may have an effect, this test case is designed around dragging elements out of the browser, to the desktop, and uses advanced features that are not required for drag-and-drop. Drag-and-drop example code and test cass for IE 9 would be found in the MSDN Library: >> Please post the public URI and a more detailed explanation of a reduced >> test > > The full HTML that I'm testing is posted above. Click, drag, release > tens of times and the problem will eventually occur. The HTML code above does not show how you are using “ondragend”. Also, you should not be modifying the document in this way in your tests to avoid side effects. Use console.log(); IE 9 supports it with the error console (F12) displayed. >> case that demonstrates *your* problem. > > I'm finding it works a bit better (its harder to make it fail) if I > instead of document.onmouseup I use document.documentElement.onmouseup . Probably a good idea, although the question remains why you would not primarily use W3C DOM Level 3 Events. IE 9 in Standards Mode suports it. Make sure that you are not viewing in Compatibility Mode (button next to the Address Bar input). > Thanks for your help but I'm starting to think its an IE issue. I think that once again you have not thought this through. For if drag-and- drop problems in IE 9 were as common as your posting suggests, it would be common knowledge by now (according to Net Applications¹, on desktops IE 9 has had a top market share of 21.67% in February 2013 [W3Counter²: 13.1% in November 2012] and still has a market share of 15.39% [W3Counter: 7.37%]; both count unique visitors per site, by contrast to e.g. StatCounter³ which counts pageviews). Please *read* and *take heed of* _______ ¹ ² (not affiliated with the W3C) ³ -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.