This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 1494 [details] Output of the case mentioned E.g. Following is the case where m square displays correctly in the first case and is incorrect in the second. Would assume both of them to be same and no extra space should be added. <html> <body> m<sup>2</sup> <br/> m<sup> 2</sup> </body> </html>
A newline behaves as a space in this context. This is expected behaviour.
I can see it behaves like a space, but the question is why as per the xml spec a new line is not a space under any context. So this is bound to be incorrect. As far as I know a new line and a space are completely diff things and must be explicitly specified. If it is the case that this is an exception, would like to know the reson for the same and also if there are any other expections as well.
(In reply to Pallav Kumaria from comment #2) > I can see it behaves like a space, but the question is why as per the xml > spec a new line is not a space under any context. So this is bound to be > incorrect. As far as I know a new line and a space are completely diff > things and must be explicitly specified. If it is the case that this is an > exception, would like to know the reson for the same and also if there are > any other expections as well. In XML, a new line is a space: http://www.w3.org/TR/xml/#NT-S. HTML is not XML. But in HTML a comparable situation applies.