Lars Magne Ingebrigtsen writes: > Lars Magne Ingebrigtsen writes: > >> But the only problematic comment is the top-level one, because that >> makes the structure different than if the comment wasn't there. Perhaps >> we could just cheat and push any top-level comments one step down in the >> DOM? I mean, it's gross, but I don't think anybody would actually >> notice in real life. > > It would mean that > > > bar > > > would turn into > > > bar > > > where indentation represents where in the DOM the element appears. Sort > of. In that case we would get (foo nil (comment nil "level 0") (comment nil "level 1") (bar nil (comment nil "level 2")))) instead of (top nil (comment nil "level 0") (foo nil (comment nil "level 1") (bar nil (comment nil "level 2")))) for this xml