[Webkit-unassigned] [Bug 9215] New: goes to a infinite loop if the event is bubbled
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Jun 1 13:04:58 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=9215
Summary: goes to a infinite loop if the event is bubbled
Product: WebKit
Version: 420+ (nightly)
Platform: PC
URL: attached html code
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: sornalatha.rathnasamy at nokia.com
it goes to a infinite loop if the event is a bubble_event and
while bubbling if one of the ancestor node calls the same event on the target
node which originated the event
suggestion for fixing is that don't call the event :
1) if the event phase is BUBBLING_PHASE
2) and if the current event's target element(the originator of the event) is
the same as the node on which the event is going to be invoked
3) and if the event types(id such as click,focus etc) of the above two nodes
are same.
Please suggest any drawbacks to this fix or if there is a better fix.
The test page is:
<html>
<head/>
<body>
<form>
<div onclick="JavaScript:alert('div
element');JavaScript:document.getElementById('segment116985839').click();">
<input name="segment1" id="segment116985839" value="test" type="radio"
onclick="javascript:alert('input element');">
</div>
</input>
</form>
</body>
</html>
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list