Open Bug 365953 Opened 18 years ago Updated 4 years ago

Alternate content of <iframe> not used when converting page to text

Categories

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

defect

Tracking

()

People

(Reporter: mcow, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

When saving a page as text, any alternate content of an <iframe> (that is, the stuff between <iframe> and </iframe>) is simply discarded, along with the <iframe>'s visible content.
Attached file test case
Steps to reproduce: 1) Load this testcase into Firefox 2) File | Save Page As... ; set "Save as type" to be "Text files"; select appropriate name (Fx 2.0 isn't properly appending a ".txt" extension). 3) View the saved text file. Actual results: Only reads: Following is an <iframe>: Expected results: Should read: Following is an <iframe>: [Alternate <iframe> representation: just some text]
I'm having a related problem which probably represents a use case of this same bug. In mailnews, rss feeds use iframe alternate content to represent the summary of the feed. I want to apply the mailnews bayesian filter on the saved feed summary using a plaintext document serializer. I expect to see all of the text in the iframe in my result, but I just get blank. As a workaround, I may manually replace the iframe tags in my content with something like a div.
Assignee: dom-to-text → nobody
QA Contact: dom-to-text

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, 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

Created:
Updated:
Size: