On 04/10/05, Karl Chen <[EMAIL PROTECTED]> wrote: > gecko mis-parses the following: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html>foo > <!-- a -- b --> > bar</html> > > firefox, galeon, etc. display: > foo -- a -- b --> bar > instead of: > foo bar
You seem to feed your code to the browser in a HTML, rather than XHTML mode. Moreover, your HTML is invalid (it's not a well-formed XHTML, either). Your second '--' closes the first comment, so 'b' is a non-whitespace character inside a comment declaration but outside a comment, which is an error.