Cosmetics
* Add HTML5 DOCTYPE (addsearch.xslt) * Omit empty lists (index.html.xslt) * Handle missing cookie (personalize.js)
This commit is contained in:
parent
c7bc9702d8
commit
3980dd1387
@ -52,6 +52,14 @@
|
|||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- add HTML5 doctype -->
|
||||||
|
<xsl:template match="/xhtml:html">
|
||||||
|
<xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text>
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- pass through everything else -->
|
<!-- pass through everything else -->
|
||||||
<xsl:template match="@*|node()">
|
<xsl:template match="@*|node()">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
<xsl:value-of select="planet:name"/>
|
<xsl:value-of select="planet:name"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<xsl:if test="$posts">
|
<xsl:if test="$posts[string-length(atom:title) > 0]">
|
||||||
<ul>
|
<ul>
|
||||||
<xsl:for-each select="$posts">
|
<xsl:for-each select="$posts">
|
||||||
<xsl:if test="string-length(atom:title) > 0">
|
<xsl:if test="string-length(atom:title) > 0">
|
||||||
|
@ -71,6 +71,7 @@ function createCookie(name,value,days) {
|
|||||||
// read a cookie
|
// read a cookie
|
||||||
function readCookie(name) {
|
function readCookie(name) {
|
||||||
var nameEQ = name + "=";
|
var nameEQ = name + "=";
|
||||||
|
if (!document.cookie) return;
|
||||||
var ca = document.cookie.split(';');
|
var ca = document.cookie.split(';');
|
||||||
for(var i=0;i < ca.length;i++) {
|
for(var i=0;i < ca.length;i++) {
|
||||||
var c = ca[i];
|
var c = ca[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user