Thanks for your suggestions.
The specific problem i am actually tryin to solve is this: From one
HTML page, I want to be able to copy/paste a piechart into another
HTML page.
For now, I actually only copy the canvas element without any content.
The piechart disappears when I copy.
Another thing that first surprised me is if you in the Firebug
inspector choose to edit the canvas element, then it will clear all
contents. So again, in my specific example, the piechart would
disappear.
I can see this is not really related to any firebug specific issues.
Instead, it seems like a limitation in the <canvas> element: If i
could describe the element via markup inside <canvas>, I could
probably also see it in Firebug.
I guess that I need something more to solve my problem.
Imagine if I copy-paste a <canvas> element, then in reality, I copied
a <canvas> element followed by a <script> element with the
instructions on how to create my piechart. Like so:
<canvas class="piechart" width="80" height="80" id="canvas1">
<script type="text/javascript">
[javascript to generate a piechart]
</script>