Closed
Bug 51744
Opened 25 years ago
Closed 25 years ago
Copying text tagged as PRE in a TD in a TABLE should retain line breaks
Categories
(Core :: DOM: Serializers, defect, P2)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: hopper, Assigned: akkzilla)
References
()
Details
(4 keywords, Whiteboard: [rtm+ need info][nsbeta3-][PDTP2] FIXED BY NOXIF LANDING)
Attachments
(1 file)
|
405 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-3lvm i586; en-US; m17) Gecko/20000807
BuildID: 2000080712
Attempting to cut & paste the public key off of this web page fails because the
line breaks are turned into spaces. The entire key is wrapped in a PRE tag.
IMHO, PRE tags should preserve line breaks when you're cutting and pasting from
them. Often they contain source code, or other things (like public keys) that
are line break sensitive.
Reproducible: Always
Steps to Reproduce:
1.Select entire public key from listed URL
2.Move to emacs window, or just a shell window where you've typed GPG import
3.paste
Actual Results: All the text is smooshed together on one line with spaces in
place of the line breaks.
Expected Results: Left the line breaks in so the text looked exactly like what
I had selected.
Comment 1•25 years ago
|
||
This ain't user interface ... --> DOM to Text Conversion?
Assignee: hangas → akkana
Component: User Interface: Design Feedback → DOM to Text Conversion
QA Contact: mpt → sujay
| Assignee | ||
Comment 2•25 years ago
|
||
I see it, too, on slasdot. But it's not just pre -- I made a simple test page
with pre, and newlines worked fine.
Turns out this only happens on <pre> tags within tables. I'm not sure why yet
-- investigating. This would be bad.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
can wait, since it seems like it only happens when pre is within tables
Target Milestone: --- → Future
Comment 5•25 years ago
|
||
Is this relnoteable?
Clarifying summary. Adding keywords.
Hixie: is this important for w3 compliance?
Summary: PRE tag should preserve line breaks → Copying text tagged as PRE in a TD in a TABLE should retain line breaks
Comment 7•25 years ago
|
||
timeless: I am not aware of any specification relating to the clipboard.
Comment 8•25 years ago
|
||
I think, this should be fixed. Pretty much every webpage uses tables for layout,
so the <pre> is very likely to be in a table. nsbeta3.
Keywords: nsbeta3
Comment 9•25 years ago
|
||
Hixie: you can are that the HTML->TXT converter is an HTML "renderer", and thus
all of the specs apply to it. (But I assume, Netscape meant only display when it
promised full HTML4 compliance :) .)
Comment 11•25 years ago
|
||
talked with akkana, she explained this is dataloss and the user is unable to use
the app with the public key -- the newline is required
Updated•25 years ago
|
Whiteboard: [need info] → [nsbeta3+]
Target Milestone: Future → M19
| Assignee | ||
Comment 12•25 years ago
|
||
Turns out this isn't a problem with output after all: the pre isn't getting
passed to the output system because it isn't in the selection.
nsHTMLDocument.cpp includes code to treat pre the same way as H1, etc., e.g.
include it in the selection if its children are, but this doesn't seem to be
working, for some reason.
Ideally, this would be fixed on the noxif branch, but it doesn't currently work
there either.
Comment 13•25 years ago
|
||
PDT agrees P2 on data loss argument. Otherwise, probably a P3
Whiteboard: [nsbeta3+] → [nsbeta3+][PDTP2]
| Assignee | ||
Comment 14•25 years ago
|
||
I checked a fix in to the noxif branch; when that branch lands, this will be
fixed, otherwise, we'll need to figure out why it's not working in the old
code. Marking dependency.
Depends on: 50742
Comment 15•25 years ago
|
||
moving this from nsbeta3+ to rtm, because the noxif is not getting in till then
Whiteboard: [nsbeta3+][PDTP2] → [rtm+][nsbeta3-][PDTP2]
Comment 16•25 years ago
|
||
Akkana, please include the required information per the rtm checkin rules
Whiteboard: [rtm+][nsbeta3-][PDTP2] → [rtm+ NEED INFO][nsbeta3-][PDTP2]
| Assignee | ||
Comment 17•25 years ago
|
||
It's somewhat academic: it's already part of the noxif branch. In any case,
it's a major correctness problem: copy/paste should give you the correct
information.
Whiteboard: [rtm+ NEED INFO][nsbeta3-][PDTP2] → [rtm+][nsbeta3-][PDTP2]
Comment 18•25 years ago
|
||
Akkana, please follow the checkin rules -- get a patch to fix the problems, get
it super-reviewed, get module owner approval. The reviewer and module owner must
make an entry in the bug, once all of that is done, remove the NEED INFO in the
rtm+ block. I will then pop it to pdt for approval.
Whiteboard: [rtm+][nsbeta3-][PDTP2] → [rtm+ NEED INFO][nsbeta3-][PDTP2]
Comment 19•25 years ago
|
||
removed the +, to fit with pdt rules
Whiteboard: [rtm+ NEED INFO][nsbeta3-][PDTP2] → [rtm NEED INFO][nsbeta3-][PDTP2]
Comment 20•25 years ago
|
||
well, kin already super reviewed as part of bug 50472. And akkana is a module
owner. If you want a different module owner then I approve. Kin, how bout you?
| Assignee | ||
Comment 21•25 years ago
|
||
I guess since it's already sr'ed as part of noxif, and is already on the branch,
it's time to remove the NEED INFO.
Whiteboard: [rtm NEED INFO][nsbeta3-][PDTP2] → [rtm][nsbeta3-][PDTP2]
Comment 22•25 years ago
|
||
adding the + so pdt will see this one
Whiteboard: [rtm][nsbeta3-][PDTP2] → [rtm+][nsbeta3-][PDTP2]
Comment 23•25 years ago
|
||
If this is already part of the noxif patch, then you don't need anything outside
of that bug. Marking need info so that this can be verified after the noxif
landing.
Whiteboard: [rtm+][nsbeta3-][PDTP2] → [rtm+ need info][nsbeta3-][PDTP2]
| Assignee | ||
Comment 24•25 years ago
|
||
Verified that it is indeed working on the trunk, will be fixed by the noxif
landing; adding an appropriate note in status whiteboard.
Whiteboard: [rtm+ need info][nsbeta3-][PDTP2] → [rtm+ need info][nsbeta3-][PDTP2] FIXED BY NOXIF LANDING
Comment 25•25 years ago
|
||
I'm confused. If "it is indeed working on the trunk", why does it need fixing
("will be fixed by the noxif landing")? You always (until yesterday) spoke about
a "NOXIF branch". Did this branch land on the trunk and you're now speaking
about landing it on the N6.0 branch?
| Assignee | ||
Comment 26•25 years ago
|
||
The noxif branch landed on the trunk over the weekend. It's scheduled to land
on the NS branch soon (like probably tonight or tomorrow), at which point I will
pull, check to make sure this bug is still fixed, and mark it so.
Comment 27•25 years ago
|
||
I tried the original scenario reported and was able to paste successfully (with
line breaks). This was on a Mac debug N6 branch build. I'll hold off on
resolving this since Akkana may have a few other things to verify.
| Assignee | ||
Comment 28•25 years ago
|
||
NoXIF landed -- this is fixed now, both branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 30•25 years ago
|
||
Sorry for the spam! But apparently all these closed bugs need to have their
target milestones changed since M19 and M20 are going away. Since they're
allready closed, I'm choosing M18.
Target Milestone: M19 → M18
You need to log in
before you can comment on or make changes to this bug.
Description
•