I'm using the most recent wip-cite-new branch of org, with a recent emacs git (28.0.50).

I would like to be able to surround some portion of a subtree with a tag, e.g.:

* parent
  some text
#+HTML: <div class="box">
** child 2
  some boxed content
** child 2
   more boxed content
 #+HTML:</div>
** child 3
  unboxed content

However, org seems to close the div for me before the ~** child 2~ headline.

Is this the intended behaviour? And if so is there any way for me to do this?