182 | | Note that the output has some subtle differences compared to the template, even beyond the variable substitution that has taken place: Genshi has added a proper HTML `DOCTYPE` (important to get the browser to render using standards mode, through a commonly employed mechanism in web browsers called “[http://www.ericmeyeroncss.com/bonus/render-mode.html doctype switching]”.) It has also removed the XHTML namespace declaration, because we're rendering to HTML, and HTML doesn't support XML namespaces. And the `<hr>` element in the footer is missing the trailing slash that can be used in XML markup for empty elements; HTML user agents know that `<hr>` is always an empty element, and including either the trailing slash, or even adding an explicit `</hr>` end tag would be invalid pr potentially confuse some browsers. |
| 182 | Note that the output has some subtle differences compared to the template, even beyond the variable substitution that has taken place: Genshi has added a proper HTML `DOCTYPE` (important to get the browser to render using standards mode, through a commonly employed mechanism in web browsers called “[http://www.ericmeyeroncss.com/bonus/render-mode.html doctype switching]”.) It has also removed the XHTML namespace declaration, because we're rendering to HTML, and HTML doesn't support XML namespaces. And the `<hr>` element in the footer is missing the trailing slash that can be used in XML markup for empty elements; HTML user agents know that `<hr>` is always an empty element, and including either the trailing slash, or even adding an explicit `</hr>` end tag would be invalid and might even confuse some browsers. |