On 8/22/07, Ian Hickson <ian@hixie.ch> wrote: > > On Wed, 22 Aug 2007, Simon Pieters wrote: > > > > (This is part of my detailed review of the parsing algorithm.) > > > > How should the following be parsed?: > > > > <body></body> </html> > > > > As I read the spec, the space is added to the body element, because that > > is still the current node even in the "after body" insertion mode. Is > > this a correct reading of the spec? If so, is it intentional? > > Yes and yes. The problem is with handling this case: > > <body>hello</body> world</html> > > ...which has to end up the same as: > > <body>hello world</body></html> > > ...for legacy reasons. What about <body><p></p></body>\n</html> (where \n is a newline)? In Safari and Opera, the newline gets added as a text node after the p in body. In FF and IE, it does not. Since a newline is white-space, I assume it's the same deal and Safari and Opera are right. Correct? -- MichaelReceived on Thursday, 23 August 2007 00:00:55 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:04 GMT