<!DOCTYPE html>
<style>
#target {
outline: medium solid black;
}
</style>
<span id="target">
<div>Content 1</div>
<span></span>
<div>Content 2</div>
</span>
<!DOCTYPE html>
<style>
#target {
outline: medium solid black;
}
</style>
<span id="target">
<div>Content 1</div>
<span></span>
<div>Content 2</div>
</span>