Exporting selected table cells of `<thead>`/`<tfoot>` and `<tbody>` exports all of them to `<thead>`/`<tbody>`
Categories
(Core :: DOM: Serializers, defect, P3)
Tracking
()
People
(Reporter: mbrodesser-Igalia, Unassigned)
References
(Blocks 1 open bug)
Details
Happened on Ubuntu 18.04, with Nightly. Very likely not a recent regression.
STR:
-
Open a page with some table containing
<thead>
and<tbody>
, e.g. this. -
Ctrl+Click on all cells of the table.
-
Tap Ctrl+c to export the selection to the clipboard.
Expected:
the clipboard contains the header rows in <thead>
and the body rows in <tbody>
.
Actual:
all rows are in <tbody>
:
"text/html" flavor:
<meta http-equiv="content-type" content="text/html; charset=utf-8"><table><thead><tr><th>Month</th><th>Savings</th></tr><tr><td>January</td><td>$100</td></tr><tr><td>February</td><td>$80</td></tr><tr><td>Sum</td><td>$180</td></tr></thead></table>
This sometimes works when drag-selecting the whole table, but at other times not. It seems it depends on the surrounding items and where exactly the clicks are happening.
Analogous problem when selecting a row in <tbody>
and <tfoot>
: all selected rows get exported to <tbody>
.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
((bug 1639972 is a S3 bug, so I assume this is also S3, feel free to change if you have different opinion.))
Reporter | ||
Updated•4 years ago
|
Description
•