|
From: <tre...@us...> - 2008-01-02 06:01:04
|
Revision: 662
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=662&view=rev
Author: trevorolio
Date: 2008-01-01 22:00:45 -0800 (Tue, 01 Jan 2008)
Log Message:
-----------
Tuned to the xml serializer to avoid some of the insanity from IE's habit of loading up all dom Elements with a ton of useless attributes.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2008-01-01 22:54:12 UTC (rev 661)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2008-01-02 06:00:45 UTC (rev 662)
@@ -234,6 +234,9 @@
var attributes = xml.attributes;
for (var i = 0; i < attributes.length; i++){
+ if(attributes.item(i).value == null || attributes.item(i).value == "null"){
+ continue;
+ }
result += " " + attributes.item(i).name.toLowerCase() + "='" + escapeHTML(attributes.item(i).value) + "'";
}
var hasText = (typeof xml.text != "undefined") && xml.text.length != 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|