mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 704667 - Take transitions from the comment start state to the data state into account when doing syntax highlighting. r=smaug.
This commit is contained in:
parent
5b5e408e95
commit
ae6ef685b6
@ -334,6 +334,7 @@ nsHtml5Highlighter::Transition(PRInt32 aState, bool aReconsume, PRInt32 aPos)
|
||||
break;
|
||||
// most comment states are omitted, because they don't matter to
|
||||
// highlighting
|
||||
case NS_HTML5TOKENIZER_COMMENT_START:
|
||||
case NS_HTML5TOKENIZER_COMMENT_END:
|
||||
case NS_HTML5TOKENIZER_COMMENT_END_BANG:
|
||||
case NS_HTML5TOKENIZER_COMMENT_START_DASH:
|
||||
|
1
parser/htmlparser/tests/reftest/bug704667-1-ref.html
Normal file
1
parser/htmlparser/tests/reftest/bug704667-1-ref.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><span class="error comment"><!--></span> <span class="error comment"><!X></span>
|
1
parser/htmlparser/tests/reftest/bug704667-1.html
Normal file
1
parser/htmlparser/tests/reftest/bug704667-1.html
Normal file
@ -0,0 +1 @@
|
||||
<!--> <!X>
|
@ -16,3 +16,4 @@ fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated) == vi
|
||||
== bug696651-1.html bug696651-1-ref.html
|
||||
== bug696651-2.html bug696651-2-ref.html
|
||||
== view-source:bug700260-1.html view-source:bug700260-1-ref.html
|
||||
== view-source:bug704667-1.html bug704667-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user