I'll grudgingly accept that this will "parse like the browser parses" but it seems expensive to create all these throwaway elements whilst parsing, Note from Shawn: re-use one div for this in a closed over scope.