Open Bug 1296261 Opened 8 years ago Updated 3 years ago

Clicking on the content of :before style does not clear selected text content

Categories

(Core :: DOM: Selection, defect, P5)

48 Branch
defect

Tracking

()

People

(Reporter: joachim.seminck, Unassigned)

References

Details

Attachments

(1 file)

Attached video FF_Issue.mov
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce:

https://jsfiddle.net/6grvh2xh/

1/ First select the text "Select me first" by dragging the cursor. 
2/ Click on the "Click me, text stays selected" 
3/ Click on the "Click me, text is cleared"



Actual results:

In step 2, clicking on the "Click me, text stays selected" does not clear the selected text.


Expected results:

In step 2, clicking on the "Click me, text stays selected" I would expect the selected text to be cleared. So that the behaviour is the same as with other browsers.

See also attached video.
likely a part of bug 12460.
See Also: → 12460
Status: UNCONFIRMED → NEW
Component: Untriaged → Selection
Ever confirmed: true
Product: Firefox → Core
Not really part of bug 12460. On Blink, you cannot select text on generated content either, but clicking them could still clear the existing selection.

Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: