Seems to be due to the HTML parser. This example code:
#lang racket/base
(require
"lib/html-parsing/main.rkt"
html-writing)
(define html "<div><aside><h2>ABC</h2><p>DEF</p></aside></div>")
(define xexp (html->xexp html))
(display xexp)
Outputs the following:
(*TOP* (div (aside (h2 ABC)) (p DEF)))