Summary: | Events are executed in designMode | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alfonso Martínez de Lizarrondo <amla70> | ||||
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | UNCONFIRMED --- | ||||||
Severity: | Normal | CC: | ahmad.saleem792, ian, karlcow, mrowe, rniwa, webkit | ||||
Priority: | P2 | ||||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Attachments: |
|
Description
Alfonso Martínez de Lizarrondo
2007-09-29 03:19:46 PDT
Created attachment 16447 [details]
testcase
This is a simple example of trying to edit a document with an onclick event.
Slightly annoying.
I'm not sure that I would consider this a bug. What if I wanted clicking on the link in your example to display a widget where I could configure the text and target of the hyperlink, for example. This message might give a much better explanation, as well as showing that the current behavior doesn't match the HTML5 spec (that might need some refinement). http://lists.w3.org/Archives/Public/public-html/2007Sep/0159.html You're right, that is much clearer about the specific issue. It sounds like the Firefox behaviour is what is desirable here. Event handlers added on the document from outside should be respected, those defined within the document itself are ignored. HTML5 now requires this, though it gets the same effect using quite a different definition: http://www.whatwg.org/specs/web-apps/current-work/#scripting2 I am not sure whether this is intended bug in relation to this or not but in WebKit ToT (259906@main), if you click on link, you get dialog but once you dismiss dialog, the caret move to start of paragraph / line rather than staying at same place and allowing editing to edit link (hyperlink text). In case of Chrome Canary 112 and Firefox Nightly 111, the caret remains at same place as you intended when trying to edit the hyperlink text. |