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)
Core
DOM: HTML Parser
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.
Assignee | ||
Comment 1•16 years ago
|
||
Planning to extract the part delimited by ASCII scissors (---8<---).
Assignee | ||
Comment 2•16 years ago
|
||
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.
Assignee | ||
Comment 3•16 years ago
|
||
Come to think of it, this pretty much obsoletes WillTokenize and DidTokenize.
Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> Come to think of it, this pretty much obsoletes WillTokenize and DidTokenize.
Or not. Tokenize might be called repeatedly.
Assignee | ||
Comment 5•15 years ago
|
||
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.
Description
•