mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
Fix XSLT quirk (Thanks Tedd)
In Firefox the XML+XSLT would render in some weird mode causing some CSS rules, notably the dark mode background to be applied wrong, or if it was the box model that was different.
This commit is contained in:
parent
36df596d00
commit
06ff107d6f
6
xep.xsl
6
xep.xsl
@ -34,7 +34,7 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
|
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
|
||||||
|
|
||||||
<xsl:output method='html' encoding='utf-8' omit-xml-declaration='yes' indent='no'/>
|
<xsl:output method='html' media-type='text/html' encoding='utf-8' omit-xml-declaration='yes' indent='no' doctype-system='about:legacy-compat'/>
|
||||||
|
|
||||||
<xsl:template name="status-notice">
|
<xsl:template name="status-notice">
|
||||||
<xsl:param name="thestatus"/>
|
<xsl:param name="thestatus"/>
|
||||||
@ -170,8 +170,6 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match='/'>
|
<xsl:template match='/'>
|
||||||
<xsl:text disable-output-escaping='yes'><!DOCTYPE html>
|
|
||||||
</xsl:text>
|
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<title>XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /></title>
|
<title>XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /></title>
|
||||||
@ -191,7 +189,7 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
|
|||||||
<!-- making things mobile-friendly... -->
|
<!-- making things mobile-friendly... -->
|
||||||
<meta>
|
<meta>
|
||||||
<xsl:attribute name='name'><xsl:text>viewport</xsl:text></xsl:attribute>
|
<xsl:attribute name='name'><xsl:text>viewport</xsl:text></xsl:attribute>
|
||||||
<xsl:attribute name='content'>width=device-width, initial-scale=1.0, maximum-scale=2.0</xsl:attribute>
|
<xsl:attribute name='content'>width=device-width, initial-scale=1.0</xsl:attribute>
|
||||||
</meta>
|
</meta>
|
||||||
<!-- BEGIN META TAGS FOR DUBLIN CORE -->
|
<!-- BEGIN META TAGS FOR DUBLIN CORE -->
|
||||||
<meta>
|
<meta>
|
||||||
|
Loading…
Reference in New Issue
Block a user