Open Bug 721003 Opened 12 years ago Updated 3 years ago

View selection source is very strict about errors

Categories

(Core :: DOM: HTML Parser, defect, P5)

defect

Tracking

()

People

(Reporter: mrbkap, Unassigned)

Details

Steps to reproduce:
1. Select some text
2. Right click to bring up the context menu
3. Select "View Selected Source"

Things to notice:
* The first tag is an error (because we were expecting a doctype as the first tag).
* Containment errors don't make sense.

We should probably disable error reporting in view selection source, especially since the source should be well formed (since this is a serialized DOM that's being displayed, which means that any errors should have already been fixed up by the parser).
This needs a mechanism that allows the View Source back end discover that we are viewing selection source.
One method would be to use a special MIME type for the data: URL that is currently used to do view selection source. bz suggested that we could add a type parameter to the data URL, but that requires fixing bug 532230 first.

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.