1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-20 00:34:50 +00:00

Avoided using .hasAttribute()

This commit is contained in:
Jeremy Ruston 2012-04-13 13:27:00 +01:00
parent 119f11f651
commit a7dceac7b8

View File

@ -179,7 +179,8 @@ var inputTiddlerDOM = function(node) {
while(e && e.nodeName.toLowerCase() !== "pre") { while(e && e.nodeName.toLowerCase() !== "pre") {
e = e.nextSibling; e = e.nextSibling;
} }
if(e && node.hasAttribute("title")) { var title = node.getAttribute ? node.getAttribute("title") : null;
if(e && title) {
var i, var i,
attrs = node.attributes, attrs = node.attributes,
tiddler = { tiddler = {