[Webkit-unassigned] [Bug 55838] Syntax highlighting for </title> </noscript> etc.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 6 12:24:51 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55838


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #84884|review?                     |review-
               Flag|                            |




--- Comment #1 from Adam Barth <abarth at webkit.org>  2011-03-06 12:24:51 PST ---
(From update of attachment 84884)
This isn't the right approach.  The underlying issue is that the SourceTracker assumes that nextToken keeps HTMLInputStream exactly in sync with the emitted tokens.  The truth is slightly more complicated because HTMLTokenizer internally buffers tokens in some cases.

This patch attempts to make the assumption true by attempting to "unbuffer" the token back into the input stream.  Instead, we should teach SourceTracker that this buffering can occur.  Making that work properly is somewhat subtle.  The approach that I think would make the most sense is to integrate the start() and end() functions from SourceTracker more closely with HTMLTokenizer.  After all, it's really the tokenizer that understands where the tokens start and end, not the HTMLDocumentParser.

Finally, all patches require a ChangeLog and tests.  There are already some tests for view-source that you can use as a model.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list