Open
Bug 1253798
Opened 10 years ago
Updated 3 years ago
A text file loaded in a frame does not word-wrap.
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: symbioid, Unassigned)
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160301003640
Steps to reproduce:
Using the below frameset code, I loaded a text file into a frame (see last frame).
<FRAMESET rows="60, *">
<FRAME src="header.html" frameborder="1" name="header" noresize="noresize">
<FRAMESET cols="70, 250, *">
<FRAME src="dir.html" frameborder="1" name="directory" noresize="noresize">
<FRAME src="" frameborder="1" name="filelisting">HELLO!</frame>
<FRAME src="/text/3.txt" frameborder="1" name ="content">
</frameset>
</FRAMESET>
Actual results:
The text in the text file frame is not word wrapped. I have tried multiple text files to make sure it isn't a problem with a specific file. All text files I've tried have not word-wrapped)
When I open the file directly (Ctrl-O), it will properly render the file with word-wrapping.
Also - if I am viewing the frames and then right-click the frame with the problematic content, then select "View only this frame", it will open the files as a single page, and then it will correctly word-wrap, just as if I had opened the text file directly.
Expected results:
The frame should word-wrap the file in the same manner a non-frame text file word wraps.
Attachment #8727031 -
Attachment is obsolete: true
Comment 3•10 years ago
|
||
The plain text document has this markup:
<link rel="alternate stylesheet" type="text/css" href="resource://gre-resources/plaintext.css" title="Wrap Long Lines">
both when loading the document directly, and when embedding it in a <frame>
inside a <frameset>. When loading it directly, "View -> Page Style -> Wrap Long Lines"
is selected by default. When loading the <framset> the "Basic Page Style" is selected,
the "Wrap Long Lines" is there (but unselected).
I suspect this is working as designed, although I agree it might be confusing.
It might be better to just always wrap plain text documents (i.e. make the above
style sheet the default), and then provide the "wrap/unwrap long lines" function
only in View Source instead (which we already have, on the context menu).
Do any other UAs have a "wrap/unwrap long lines" feature for plain text documents?
If so, in the main UI and/or in View Source?
Updated•7 years ago
|
Product: Core → Core Graveyard
| Assignee | ||
Updated•7 years ago
|
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•