mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 246620 - Add line numbers to View Source for Firefox - fix for reftests; r=smaug
This commit is contained in:
parent
df77e46072
commit
c2f72abcf4
@ -1,24 +1,27 @@
|
||||
<!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="doctype"><!DOCTYPE html></span>
|
||||
<span><<span class="start-tag">html</span>></span>
|
||||
<span><<span class="start-tag">head</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span>
|
||||
var lt = "<";
|
||||
<!--
|
||||
var s = "<script>foo</script>";
|
||||
-->
|
||||
<span class="end-tag"></script></span><span></span><span class="comment"><!-- Not quite optimal highlight there. --></span>
|
||||
<span><<span class="start-tag">style</span>></span>
|
||||
/* </foo> */
|
||||
<span></<span class="end-tag">style</span>></span>
|
||||
<span></<span class="end-tag">head</span>></span>
|
||||
<span><<span class="start-tag">body</span>></span>
|
||||
<span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span><<span class="start-tag">iframe</span>></span><img><span></<span class="end-tag">iframe</span>></span>
|
||||
<span><<span class="start-tag">noscript</span>></span><p>Not para</p><span></<span class="end-tag">noscript</span>></span>
|
||||
<span><<span class="start-tag">svg</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span></<span class="end-tag">svg</span>></span>
|
||||
<span></<span class="end-tag">body</span>></span>
|
||||
<span></<span class="end-tag">html</span>></span>
|
||||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="doctype"><!DOCTYPE html></span>
|
||||
<span id></span><span><<span class="start-tag">html</span>></span>
|
||||
<span id></span><span><<span class="start-tag">head</span>></span>
|
||||
<span id></span><span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span id></span><span><<span class="start-tag">script</span>></span>
|
||||
<span id></span>var lt = "<";
|
||||
<span id></span><!--
|
||||
<span id></span>var s = "<script>foo</script>";
|
||||
<span id></span>-->
|
||||
<span id></span><span class="end-tag"></script></span><span></span><span class="comment"><!-- Not quite optimal highlight there. --></span>
|
||||
<span id></span><span><<span class="start-tag">style</span>></span>
|
||||
<span id></span>/* </foo> */
|
||||
<span id></span><span></<span class="end-tag">style</span>></span>
|
||||
<span id></span><span></<span class="end-tag">head</span>></span>
|
||||
<span id></span><span><<span class="start-tag">body</span>></span>
|
||||
<span id></span><span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span id></span><span><<span class="start-tag">iframe</span>></span><img><span></<span class="end-tag">iframe</span>></span>
|
||||
<span id></span><span><<span class="start-tag">noscript</span>></span><p>Not para</p><span></<span class="end-tag">noscript</span>></span>
|
||||
<span id></span><span><<span class="start-tag">svg</span>></span>
|
||||
<span id></span><span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span id></span><span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span id></span><span></<span class="end-tag">svg</span>></span>
|
||||
<span id></span><span></<span class="end-tag">body</span>></span>
|
||||
<span id></span><span></<span class="end-tag">html</span>></span>
|
||||
<span id></span>
|
||||
</pre>
|
||||
<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
|
||||
|
@ -1,25 +1,28 @@
|
||||
<!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="pi"><?xml version="1.0" encoding="utf-8"?></span>
|
||||
<span class="pi"><?foo bar?></span>
|
||||
<span><<span class="start-tag">html</span>></span>
|
||||
<span><<span class="start-tag">head</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span>
|
||||
var s = "<span><<span class="start-tag">script</span>></span><span>foo</span><span></<span class="end-tag">script</span>></span>";
|
||||
<span class="comment"><!--
|
||||
var s = "<script>foo</script>";
|
||||
--></span>
|
||||
<span></<span class="end-tag">script</span>></span><span></span>
|
||||
<span><<span class="start-tag">style</span>></span>
|
||||
/* <span><<span class="start-tag">foo</span><span>/</span>></span> */
|
||||
<span></<span class="end-tag">style</span>></span>
|
||||
<span></<span class="end-tag">head</span>></span>
|
||||
<span><<span class="start-tag">body</span>></span>
|
||||
<span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span><<span class="start-tag">iframe</span>></span><span></span><span><<span class="start-tag">img</span>></span><span></<span class="end-tag">iframe</span>></span>
|
||||
<span><<span class="start-tag">noscript</span>></span><span><<span class="start-tag">p</span>></span><span>Not para</span><span></<span class="end-tag">p</span>></span><span></<span class="end-tag">noscript</span>></span>
|
||||
<span><<span class="start-tag">svg</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span></<span class="end-tag">svg</span>></span>
|
||||
<span></<span class="end-tag">body</span>></span>
|
||||
<span></<span class="end-tag">html</span>></span>
|
||||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="pi"><?xml version="1.0" encoding="utf-8"?></span>
|
||||
<span id></span><span class="pi"><?foo bar?></span>
|
||||
<span id></span><span><<span class="start-tag">html</span>></span>
|
||||
<span id></span><span><<span class="start-tag">head</span>></span>
|
||||
<span id></span><span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span id></span><span><<span class="start-tag">script</span>></span>
|
||||
<span id></span>var s = "<span><<span class="start-tag">script</span>></span><span>foo</span><span></<span class="end-tag">script</span>></span>";
|
||||
<span id></span><span class="comment"><!--
|
||||
<span id></span>var s = "<script>foo</script>";
|
||||
<span id></span>--></span>
|
||||
<span id></span><span></<span class="end-tag">script</span>></span><span></span>
|
||||
<span id></span><span><<span class="start-tag">style</span>></span>
|
||||
<span id></span>/* <span><<span class="start-tag">foo</span><span>/</span>></span> */
|
||||
<span id></span><span></<span class="end-tag">style</span>></span>
|
||||
<span id></span><span></<span class="end-tag">head</span>></span>
|
||||
<span id></span><span><<span class="start-tag">body</span>></span>
|
||||
<span id></span><span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span id></span><span><<span class="start-tag">iframe</span>></span><span></span><span><<span class="start-tag">img</span>></span><span></<span class="end-tag">iframe</span>></span>
|
||||
<span id></span><span><<span class="start-tag">noscript</span>></span><span><<span class="start-tag">p</span>></span><span>Not para</span><span></<span class="end-tag">p</span>></span><span></<span class="end-tag">noscript</span>></span>
|
||||
<span id></span><span><<span class="start-tag">svg</span>></span>
|
||||
<span id></span><span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span id></span><span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span id></span><span></<span class="end-tag">svg</span>></span>
|
||||
<span id></span><span></<span class="end-tag">body</span>></span>
|
||||
<span id></span><span></<span class="end-tag">html</span>></span>
|
||||
<span id></span>
|
||||
</pre>
|
||||
<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
|
||||
|
@ -1,13 +1,17 @@
|
||||
<!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="doctype"><!DOCTYPE html></span>
|
||||
XX<span class="error">&</span>XX
|
||||
XX<span class="error">&</span>nXX
|
||||
XX<span class="error">&</span>noXX
|
||||
XX<span class="error entity">&not</span>XX
|
||||
XX<span class="error entity">&noti</span>XX
|
||||
XX<span class="error entity">&notin</span>XX
|
||||
XX<span class="error">&</span>;XX
|
||||
XX<span class="error">&</span>n;XX
|
||||
XX<span class="error">&</span>no;XX
|
||||
XX<span class="entity">&not;</span>XX
|
||||
XX<span class="error entity">&noti</span>;XX
|
||||
XX<span class="entity">&notin;</span>XX
|
||||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="doctype"><!DOCTYPE html></span>
|
||||
<span id></span>XX<span class="error">&</span>XX
|
||||
<span id></span>XX<span class="error">&</span>nXX
|
||||
<span id></span>XX<span class="error">&</span>noXX
|
||||
<span id></span>XX<span class="error entity">&not</span>XX
|
||||
<span id></span>XX<span class="error entity">&noti</span>XX
|
||||
<span id></span>XX<span class="error entity">&notin</span>XX
|
||||
<span id></span>XX<span class="error">&</span>;XX
|
||||
<span id></span>XX<span class="error">&</span>n;XX
|
||||
<span id></span>XX<span class="error">&</span>no;XX
|
||||
<span id></span>XX<span class="entity">&not;</span>XX
|
||||
<span id></span>XX<span class="error entity">&noti</span>;XX
|
||||
<span id></span>XX<span class="entity">&notin;</span>XX
|
||||
<span id></span>
|
||||
<span id></span>
|
||||
</pre>
|
||||
<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
|
||||
|
@ -1 +1,4 @@
|
||||
<!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>
|
||||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="error comment"><!--></span> <span class="error comment"><!X></span>
|
||||
<span id></span>
|
||||
</pre>
|
||||
<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
|
||||
|
Loading…
Reference in New Issue
Block a user