Tree view is too cluttered due to showing the full text of text nodes; hard to see the overall tree structure



4 years ago
6 months ago


(Reporter: bzbarsky, Unassigned)


(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)



(1 attachment)

When debugging issues with unclosed tags and whatnot, it doesn't matter that much what the content of text nodes is, and including the full text makes it much harder to see the structure of the element tree.
Bug 1046803 is somehow related.
It aims at making the markup-view better deal with text nodes. Right now it doesn't do a great job at it, especially if the text nodes contain \n and \t.

I think the text nodes should be there, but strings should be trimmed to fit nicely in the markup-view, and perhaps we should have an option to hide text nodes altogether.
I know Firebug has a similar option.
If you are wanting all text nodes to be completely hidden I guess this isn't a duplicate, but bug 1046803 will surely be a big help.  Right now text nodes take up way too much space.

Instead of having some kind of mode where text nodes are hidden, I would prefer to:

1) Fix the whitespace issues in 1046803 so that text content shows up on the same line as the tag
2) Add a pref for DEFAULT_VALUE_SUMMARY_LENGTH ( - then you could ensure that this was always on one line by setting the summary value to a very small number.  The nice part with that would be that clicking on the shortened text node will still fetch the full value from the server in case you do want to see it.
Depends on: 1046803

Comment 4

3 years ago
Created attachment 8750089 [details]

Comment 5

3 years ago
I think this is safe to close this as we now truncate node content ( see )
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME


6 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.