Closed
Bug 301563
Opened 19 years ago
Closed 19 years ago
source visible when choosing "view source"
Categories
(Toolkit :: View Source, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: hauser, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Admitted, this is a page probably designed to be difficult, but still, why can't "view source" not just show what currently is rendered? Reproducible: Always
Comment 1•19 years ago
|
||
Viewing the page source with selecting all the stuff and using "View Selection
Source" reveals this comment:
"<!-- {} #css { color: red; } --><!-- referer is || --><!-- when referer is the
same as the value of the href attribute below,
this script will return a stylesheet instead of an HTML page. -->"
INVALID?| Reporter | ||
Comment 2•19 years ago
|
||
but this is not the true source. I guess you get closer to the true source when using lynx and the use the "\"
Comment 3•19 years ago
|
||
When reporting a bug, please use a recent build, preferably, a nightly (http://www.mozilla.org/developer). If you are unable to utilize a nightly, at least download 1.0.5 which has been released recently.
Comment 4•19 years ago
|
||
Correction: If you are unable to use a nightly, download 1.0.6 (more recent branch build), not 1.0.5
| Reporter | ||
Comment 5•19 years ago
|
||
Apologies, got 1.0.6 now and the problem is still there. Before manually getting the 1.0.6, tried to use my Software-Update from 1.0.4 that reported "no updates available" (hope this bug is fixed by now...)
Comment 6•19 years ago
|
||
Yes, the updater not seeing the new version is a known issue. I do not know if this instance is a feature or not. However, by using the method in comment #1, I was able to view the output that you are expecting: <html lang="en"><head><!-- {} #css { color: red; } --><!-- referer is || --><!-- when referer is the same as the value of the href attribute below, this script will return a stylesheet instead of an HTML page. --><title>An HTML Page with the CSS Stylesheet Having The Same URI</title> <link rel="stylesheet" href="http://www.hixie.ch/tests/evil/dom/css/001.cgi"> <script type="text/javascript"> function test() { if (document.styleSheets[0].href == 'http://www.hixie.ch/tests/evil/dom/css/001.cgi') { document.getElementById('dom').appendChild(document.createTextNode('The DOM part of this test has PASSED.')); } else { document.getElementById('dom').appendChild(document.createTextNode('The DOM part of this test has FAILED. The URI of the first stylesheet was given as: ' + document.styleSheets[0].href)); } } </script></head><body onload="setTimeout(test, 500)"> <p id="css">The CSS loader part of this test has passed if this line is green.</p> <p id="dom">The DOM part of this test has PASSED.</p> <p>The networking part of this test has passed if <a href="http://www.hixie.ch/tests/evil/dom/css/001.cgi">this is a stylesheet</a>.</p> <p>The UI part of this test has passed if after following that link, the back button returns you to this page.</p> <p><em>See Also:</em> <a href="http://www.hixie.ch/tests/evil/dom/css/001.cgi?cache=nocache">"nocache" headers version</a> <a href="http://www.hixie.ch/tests/evil/dom/css/001.cgi?cache=nostore">"nostore" headers version</a> </p> </body></html>
Comment 7•19 years ago
|
||
This is INVALID. The source specifically states that the script will return the stylesheet, and not the HTML source.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•