![]() While the tokenizer has support for processing instructions when highlighting XML source, that’s the only XML-specific capability provided. View Source uses the HTML tokenizer when highlighting XML source. Parse errors related to xmlns attributes aren’t reported. Tree builder errors relating to text (as opposed to tags, comments, or doctypes) aren’t reported. Among the errors that don’t get reported:īytes that are illegal according to the document’s encoding aren’t marked as errors.įorbidden characters aren’t reported as errors.Įrrors related to the end-of-file aren’t reported. Not all parse errors are reported ¶Įven though all the reported errors are parse errors according to the HTML specification, not all parse errors are reported by View Source. If you want to check that HTML is valid, you should use an HTML validator, such as the one offered by W3C. Therefore, this error will not be flagged in View Source. For example, putting a div element as a child of a ul element isn’t a parse error, but it is not valid HTML. View Source only reports parsing errors, not HTML validity errors. ![]() There are limitations to what View Source does for you that you need to be aware of. If you context-click while the mouse is over some MathML, you’ll see a context menu item labeled “View MathML Source”: click it to see the MathML source. If you select part of a web page and context-click, you’ll see a context menu item labeled “View Selection Source”, that behaves just like “View Page Source”, except you only see the source for the selection. It is possible to link to a particular line, by adding the #lineNNN anchor to the url the browser will jump to the NNN line.įor example view-source: View Selection Source ¶ To access Go to Line from the keyboard, press Control + Option + L on macOS, or Alt + Shift + L on Windows or Linux. This feature is useful when you’re looking for HTML errors. Hovering your mouse over errors displays a tooltip explaining the error. Syntax Highlighting (toggle)Īpplies syntax highlighting to the code.When syntax highlighting is on, View Source also highlights parsing errors in red. ![]() Wraps long lines to the width of the page. If the number is higher than the lines in a file, you receive an error message. View Source has three additional features, which can be accessed from the context menu in the View Source tab: Go to Line The command opens a new tab with the source for the current page. Press Ctrl + U on Windows and Linux, or Cmd + U on macOS To activate View Source:Ĭontext-click in the page and select View Page Source View Source lets you look at the HTML or XML source for the page you’re viewing. Turning on Firefox tests for a new configuration.Getting Set Up To Work On The Firefox Codebase. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |