On Mon, 08 Jan 2007 17:42:49 +0100, Sam Ruby <[EMAIL PROTECTED]> wrote: > The current tokenizer has ".lower()" sprinkled throughout and doesn't > expose in any meaningful way the difference between empty and start tags.
Because there is no difference between them. See the HTML5 specification. > For the tokenizer to be meaningfully subclassed (and by that, I mean > without requiring wholesale duplication of a number of methods), these > behaviors would need to be factored out into separate methods that could > be overridden. You could subclass it and change processSolidusInTag. Instead of throwing an atheist parse error you would change the type of token to be "empty" or something. Not sure how to do the .lower() stuff. I kind of guessed the reason you wanted to change that was because of a project like this :-) -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/> _______________________________________________ implementors mailing list [email protected] http://lists.whatwg.org/listinfo.cgi/implementors-whatwg.org
