Closed Bug 70045 Opened 24 years ago Closed 23 years ago

FileSaveAs .TXT Does Not Strip Any Markup Tags

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: mrmazda, Assigned: mkaply)

References

Details

Attachments

(1 file, 2 obsolete files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; m18) Gecko/20010201 BuildID: 2001020100 Choosing File Save As and ending filename with .TXT saves file complete with all HTML markup tags instead of pure humanly readable text. Reproducible: Always Steps to Reproduce: Choose File Save As on displayed page and end filename with .TXT Actual Results: HTML file, including markup tags, saved Expected Results: Pure text file saved, no markup tags included
In previosus Netscape browsers, saving a fle with a TXT extension caused all HTML to be removed from the file, and an attempt was made to format it as a plain text file. This function is missing from Mozilla.
Assignee: dougt → karnaze
Status: UNCONFIRMED → NEW
Component: Networking: File → Layout
Ever confirmed: true
OS: OS/2 → All
QA Contact: tever → petersen
Hardware: PC → All
Summary: FileSaveAs .TXT Does Not Strip Markup Tags → No Text Formatter in Mozilla for outputting .TXT files without markup
not a table bug, reassigning to component owner.
Assignee: karnaze → attinasi
Severity: normal → enhancement
Keywords: 4xp
Target Milestone: --- → Future
not layout, ->DOM to Text Conversion
Assignee: attinasi → harishd
Component: Layout → DOM to Text Conversion
QA Contact: petersen → sujay
fixed in bug 42441 *** This bug has been marked as a duplicate of 42441 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Originally filed as OS/2 bug. Restoring original summary. Reopening, since saving as filename.txt still preserves HTML formatting in 2002030716 OS/2. Maybe using XFILE has something to do with this? Works fine in Netscape 4.
Status: RESOLVED → REOPENED
OS: All → OS/2
Hardware: All → PC
Resolution: DUPLICATE → ---
Summary: No Text Formatter in Mozilla for outputting .TXT files without markup → FileSaveAs .TXT Does Not Strip Markup Tags
Changing severity since according to bug 42441 this feature is supposed to exist.
Severity: enhancement → normal
Summary: FileSaveAs .TXT Does Not Strip Markup Tags → OS/2: FileSaveAs .TXT Does Not Strip Markup Tags
OS/2 specific problem. Attaching fix.
Assignee: harishd → mkaply
Status: REOPENED → NEW
Component: DOM to Text Conversion → XP Toolkit/Widgets
Attached patch Fix for problem (obsolete) — Splinter Review
GetFilterIndex and SetFilterIndex weren't implemented on OS/2, so we were always saving the full HTML page. I also snuck the beginning of the mDefault Extension stuff in here.
Attached patch with -u (obsolete) — Splinter Review
Attachment #73562 - Attachment is obsolete: true
*** Bug 130412 has been marked as a duplicate of this bug. ***
Attached patch Better fixSplinter Review
I was missing stuff. I needed to move some memory stuff around and initialize the current filter.
Attachment #73564 - Attachment is obsolete: true
Comment on attachment 73968 [details] [diff] [review] Better fix r=pedemont
Attachment #73968 - Flags: review+
Comment on attachment 73968 [details] [diff] [review] Better fix sr=blizzard OS/2 specific file
Attachment #73968 - Flags: superreview+
Comment on attachment 73968 [details] [diff] [review] Better fix a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73968 - Flags: approval+
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
This is only partially (mostly fixed). Some (look like non-standard M$) tags are not removed, e.g. <person.asp?perfid=no_cred&Gender=D>. Another non-removal example: <javascript:openWindow('ratings.asp')>. These are from http://www.iafd.com/title.asp?title=High+Octane&year=2001
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Felix, could you please open a new bug for that problem. It is a different issue than this one, and it is not Os/2 specific. Thanks
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Component: XP Toolkit/Widgets → File Handling
OS: OS/2 → All
Hardware: PC → All
Resolution: --- → FIXED
Summary: OS/2: FileSaveAs .TXT Does Not Strip Markup Tags → FileSaveAs .TXT Does Not Strip All Markup Tags
Summary: FileSaveAs .TXT Does Not Strip All Markup Tags → FileSaveAs .TXT Does Not Strip Any Markup Tags
Verified fixed by reporter.
v
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: