I've done similar things in the past. My workflow was a bit different
though, I would usually select the unwanted elements and press DEL on my
keyboard, to delete them.
Your solution seems better because you do this in one go.
I like your idea about having a "make this the only node in the document".
In a way this reminds me of a somewhat regularly request feature to
"extract" a node from a page in order to create a simple HTML/CSS test case
that can stand on its own, without being part of the larger page. This has
some complexity to it since you need to get the CSS rules to keep on
matching correctly even though the DOM is different.
Having this would be great for creating reduced test cases and should
answer your need to print the content in web pages.
Maybe others have better ideas for this though?
Patrick
> _______________________________________________
> dev-developer-tools mailing list
>
dev-devel...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-developer-tools
>