On Mon, May 26, 2008 at 08:50:19PM +0000, corvid wrote:
Jorge wrote:
But I mean it finishes seeing the first head, enables view source, user views the source, and then the charset in the second head causes a repush. Is the parser avoiding that?
Yes, once you are IN_BODY, HEAD can't be re-opened, and META doesn't work outside HEAD.
But if I give it a page containing
<html> <head> <title>first head</title> </head> <body> body </body> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> </html>
I get
.. META Content-Type changes charset to: iso-8859-1 .. META Content-Type gave charset as: iso-8859-1 a_Nav_expect_done: repush!
That's a corner case bug. It passed because you closed BODY explicitly (i.e. if you remove the </body> tag, the fault is caught. Patch committed.
I'd prefer to try the dpi before optimizing.
I don't know dpis, so to me that's the difficult way...
Then let's focus in the decoder. -- Cheers Jorge.-