Reputation: 596633
I have a bookmarklet storing a lot of DOM data, but I would love to avoid to put them out of the body tag so the script in the page won't mess with it.
Semantic value is not an issue for once, but I would like to know :
Upvotes: 0
Views: 251
Reputation: 596633
Result of some little testing :
</body>
alert()
from a SCRIPT if it's after </body>
</body>
Upvotes: 0
Reputation: 35830
Everything inside the <html> tag (even if outside the <body> tag) can be accessed via document.documentElement
.
Upvotes: 4