View Selection Source shouldn't use a parser

NEW
Unassigned

Status

()

--
enhancement
8 years ago
4 years ago

People

(Reporter: hsivonen, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
It appears that the View Selection Source feature serializes the selection and then feeds the serialization to the parser. This is inefficient and has undesirable side effects when the new parser highlights the lack of doctype as an error.

Instead, there should be a DOM-to-DOM conversion of the selection into a document that looks right with viewsource.css.

Comment 1

7 years ago
Is this in any way affected by new parser from bug 482921?
(Reporter)

Comment 2

7 years ago
This bug remains. However, what comment 0 says about highlighting the lack of doctype now shows.

Comment 3

4 years ago
I would assume this is really a "View Source" bug rather than a bug with the serialization of the DOM itself, if View Source is using the wrong method to "serialize" things to begin with... :-)
Component: Serializers → View Source
Product: Core → Toolkit
You need to log in before you can comment on or make changes to this bug.