1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixes suggested by Firefox's console

This commit is contained in:
Jeremy Ruston 2012-08-31 11:38:30 +01:00
parent dd7bb54965
commit 4cebcddeeb

View File

@ -558,9 +558,7 @@ $tw.modules.registerModuleExports("$:/boot/tiddlerdeserializer/dom","tiddlerdese
text: $tw.utils.htmlDecode(e.innerHTML) text: $tw.utils.htmlDecode(e.innerHTML)
}; };
for(var i=attrs.length-1; i >= 0; i--) { for(var i=attrs.length-1; i >= 0; i--) {
if(attrs[i].specified) { tiddler[attrs[i].name] = attrs[i].value;
tiddler[attrs[i].name] = attrs[i].value;
}
} }
return tiddler; return tiddler;
} else { } else {
@ -579,7 +577,7 @@ $tw.modules.registerModuleExports("$:/boot/tiddlerdeserializer/dom","tiddlerdese
attributes = node.attributes; attributes = node.attributes;
for(var a=0; a<attributes.length; a++) { for(var a=0; a<attributes.length; a++) {
if(attributes[a].nodeName.substr(0,13) === "data-tiddler-") { if(attributes[a].nodeName.substr(0,13) === "data-tiddler-") {
fields[attributes[a].nodeName.substr(13)] = attributes[a].nodeValue; fields[attributes[a].nodeName.substr(13)] = attributes[a].value;
} }
} }
return fields; return fields;