Out-of-place <script> can mess up Preview element highlighting


#1

Here (note the tag location) the source cursor is on

but the Preview highlights the div:

Likewise

and

The highlighting is off by one each time.