Closed Bug 156103 Opened 23 years ago Closed 23 years ago

View selection source

Categories

(Core Graveyard :: View Source, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 28809

People

(Reporter: raccettura, Assigned: doronr)

Details

When I select some text on a page, then right click to "View Selection Source" it simply displays the line that contains the code. Is it possible to maybe display the entire source of the page, and highlight the portion of text selected in the page? I don't know why someone would want only the source they selected. I would think most like myself would want it for a quick way to reference through long html pages and go right to a particular section. At the very least, if the text is deselected, the rest of the HTML should come into view, leaving the current location of the formerly selected text in view as reference. I just think the feature would be much more useful as such.
In fact, the view source just shows the parent node of the selection, so the enhancement would be something as "easy" as go up in the tree to the root node instead of using the parent of the selection. As I don't find a dup and I think it's a good idea I'm confirming it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
It is kept small for speed reason (see bug 28809). The view-source is *constructed* on the fly from the DOM of the active document. If the entire document was to be re-constructed this way everytime a selection is displayed, it might make the feature to look sluggish, especially for large documents. Note that it remains possible to select a bigger portion to view a wider context.
*** This bug has been marked as a duplicate of 28809 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Why not a prefs option to either keep as is, or show the entire source with the selected component highlighted?
Ah, another pref, that's a question for mpt to ponder about... (But FYI, the code can already support either option with minimun changes)
Product: Browser → Seamonkey
Product: SeaMonkey → Core Graveyard
You need to log in before you can comment on or make changes to this bug.