30 Jun 22:00
Re: text selection and links not working in iframe (html element) in Safari
Henry Minsky <hminsky <at> laszlosystems.com>
2009-06-30 20:00:01 GMT
2009-06-30 20:00:01 GMT
The text selection getting nuked is a bug in safari. The inability to click on a <a> link happens
in both safari and IE7 (it is due to the intercept of the 'click' event)
On Tue, Jun 30, 2009 at 3:58 PM, P T Withington <ptw <at> pobox.com> wrote:
These events all bubble, but are also all cancellable. Is the event handler cancelling them or suppressing the default action?On 2009-06-30, at 15:20EDT, Henry Minsky wrote:I isolated the bug in http://openlaszlo.org/jira/browse/LPP-8303 down to
this code in iframemanager.js
in __setSendMouseEvents , the iframemanager binds the 'mousedown' and
'click' events
lz.embed.attachEventHandler(iframe.document, 'mousedown',
lz.embed.iframemanager, '__mouseEvent', id);
lz.embed.attachEventHandler(iframe.document, 'click',
lz.embed.iframemanager, '__mouseEvent', id);
And those cause Safari to no longer be able to drag-select text or to click
on links.
Is there some way we can re-send those events back to the browser, if thise
code is intercepting them?
We're not grabbing these events in capture phase (before any DOM element gets to see them) are we?
Is this _only_ a bug in Safari?
--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com
RSS Feed