[eluser]Colin Williams[/eluser]
Well, the only valid child elements for <html> are <head> and <body>. So, it's a pretty safe and standard assumption the profiler class is making. Should it EXPECT your markup to be invalid? I think not (although it could probably get away with just replacing </body>