Open Bug 1074737 Opened 11 years ago Updated 5 years ago

Cannot select the table content in a contentEditable container

Categories

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

x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: hammadi_naim, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36 Steps to reproduce: 1- Add a table tag with some text on it to a contentEditable div <div contenteditable="true"> <table style="table-layout: fixed; word-break: break-all; border-collapse: collapse; border: 0pt solid black; width: 16cm;" cellspacing="0" cellpadding="0"> <tbody> <tr> <td style="padding: 0cm 0.19cm 0cm 0.19cm; vertical-align: top; width: 8cm; border: 1pt solid #000000;"> cell 1 </td> <td style="padding: 0cm 0.19cm 0cm 0.19cm; vertical-align: top; width: 8cm; border: 1pt solid #000000;"> cell 2 </td> </tr> <tr> <td style="padding: 0cm 0.19cm 0cm 0.19cm; vertical-align: top; width: 8cm; border: 1pt solid #000000;"> cell 3 </td> <td style="padding: 0cm 0.19cm 0cm 0.19cm; vertical-align: top; width: 8cm; border: 1pt solid #000000;"> cell 4 </td> </tr> </tbody> </table> </div> 2- Using the mouse, try to select the whole table content starting from cell 1 to cell 4 Actual results: - The table and its cells borders will be highlighted in blue and its content is not selected - The selection object return invalid values: var sel = document.getSelection(); sel.anchorNode ==> <tr> (the second table line) sel.focusNode ==> <tr> (the second table line also) Expected results: - The whole text content will be highlighted in blue like all the other browsers - The selection object must return these values: sel.anchorNode ==> <tr> (the first table line) sel.focusNode ==> <tr> (the second table line)
Component: Untriaged → Selection
Keywords: testcase
Product: Firefox → Core

Bulk-downgrade of unassigned, >=5 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

Creator:
Created:
Updated:
Size: