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: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 -->
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
|
@ -131,7 +131,7 @@
|
||||
<xsl:value-of select="planet:name"/>
|
||||
</a>
|
||||
|
||||
<xsl:if test="$posts">
|
||||
<xsl:if test="$posts[string-length(atom:title) > 0]">
|
||||
<ul>
|
||||
<xsl:for-each select="$posts">
|
||||
<xsl:if test="string-length(atom:title) > 0">
|
||||
|
@ -71,6 +71,7 @@ function createCookie(name,value,days) {
|
||||
// read a cookie
|
||||
function readCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
if (!document.cookie) return;
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i=0;i < ca.length;i++) {
|
||||
var c = ca[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user