213
edits
Line 11: | Line 11: | ||
When a URL is "linkified", the source URL is first converted into an absolute URL (if it's not already), using the URL to the source file being used. If the source file specifies one or more BASE elements, then the base URL specified by the last BASE element is used. | When a URL is "linkified", the source URL is first converted into an absolute URL (if it's not already), using the URL to the source file being used. If the source file specifies one or more BASE elements, then the base URL specified by the last BASE element is used. | ||
Once an absolute URL has been constructed, it is turned into a "view-source:" URL. For example the URL | Once an absolute URL has been constructed, it is turned into a "view-source:" URL. For example the URL '''http:''//''www.mozilla.org/projects/minefield/''' will be turned into '''view-source:http:''//''www.mozilla.org/projects/minefield/'''. So clicking a link to an HTML page in page source will bring up the source for the new page, not the rendered HTML for that page. | ||
Note that if a URL points to a text file (as determined by MIME type), then both the source URL and the view-source URL constructed from it have the same effect. So CSS and JS files linked from page source work as expected. | Note that if a URL points to a text file (as determined by MIME type), then both the source URL and the view-source URL constructed from it have the same effect. So CSS and JS files linked from page source work as expected. |
edits