Report question

Question: Is it possible to "sandbox" arbitrary JavaScript to only operate on one <div> and not the whole document?