W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] 8.2.4.4 Close tag open state

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 22 Dec 2008 22:55:46 +0200
Message-ID: <770DA44F-F35A-4B0A-AA38-BFC8B0FDB9D5@iki.fi>
On Dec 22, 2008, at 19:31, Edward Z. Yang wrote:

> The condition here is reaaaally long. Is there any way we can make  
> it shorter?


Not really, but it's possible to flatten out the lookahead by adding  
states so that the condition in each state becomes simpler. (In fact,  
it's possible to remove lookahead from the tokenizer altogether by  
adding more states.) See Tokenizer.java in the Validator.nu HTML Parser.

SVN URL: http://svn.versiondude.net/whattf/htmlparser/trunk/

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Monday, 22 December 2008 12:55:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC