<!doctype html>
<span style="outline: 1px dotted black">
  A
  <div></div>
  B
</span>