Closed Bug 485587 Opened 16 years ago Closed 15 years ago

Add a Tokenize method to the nsITokenizer interface

Categories

(Core :: DOM: HTML Parser, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mozilla+ben, Assigned: mozilla+ben)

References

Details

Attachments

(2 files)

The token consumption loop should be moved into the tokenizer(s) rather than living in nsParser.cpp. ConsumeToken is the wrong abstraction to expose, not least because it's called too frequently to be worth proxying across threads.
Planning to extract the part delimited by ASCII scissors (---8<---).
Turns out the implementation for nsExpatDriver (implements nsITokenizer—I know, it's crazy) and nsHTMLTokenizer were identical, so I've moved the default Tokenize implementation into a common base class, nsTokenizer.
Come to think of it, this pretty much obsoletes WillTokenize and DidTokenize.
(In reply to comment #3) > Come to think of it, this pretty much obsoletes WillTokenize and DidTokenize. Or not. Tokenize might be called repeatedly.
Long since mooted by HTML5 parser work.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: