Closed
Bug 674531
Opened 14 years ago
Closed 13 years ago
Text outside of p, div, li, pre, hx or td's are not selectable it seems
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: martijn.martijn, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(3 files)
|
394 bytes,
text/html
|
Details | |
|
673 bytes,
text/html
|
Details | |
|
1.07 KB,
patch
|
Details | Diff | Splinter Review |
Certain text doesn't seem to be selectable, when they are not in a p, div, li, pre, hx or td, it seems, according to the patch from bug 661388.
+ } else if (elem instanceof Ci.nsIDOMHTMLParagraphElement ||
+ elem instanceof Ci.nsIDOMHTMLDivElement ||
+ elem instanceof Ci.nsIDOMHTMLLIElement ||
+ elem instanceof Ci.nsIDOMHTMLPreElement ||
+ elem instanceof Ci.nsIDOMHTMLHeadingElement ||
+ elem instanceof Ci.nsIDOMHTMLTableCellElement) {
This seems rather harsh. Why should text outside of these elements not be selectable?
Comment 1•14 years ago
|
||
You are correct. Initially I did not want to start selection in buttons captions and other obviously wrong places. We should be able to make this logic better, hopefully without adding more checks.
| Reporter | ||
Comment 2•14 years ago
|
||
I tested locally what happens when removing those checks.
The selection handles still aren't invoked when long-tapping on a button. In captions, the selection handles are invoked, but I don't see why that should be disallowed.
When the caption is inside a div, then the selection handles are still invoked, even with these checks.
So I don't what the use of these checks are.
| Reporter | ||
Comment 3•14 years ago
|
||
Attachment #551497 -
Flags: review?(mark.finkle)
| Reporter | ||
Comment 4•13 years ago
|
||
Mass resolving XUL Fennec I filed to WORKSFORME. If someone still cares about this bug, please reopen.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Updated•13 years ago
|
Attachment #551497 -
Flags: review?(mark.finkle)
You need to log in
before you can comment on or make changes to this bug.
Description
•