mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 06:36:48 +00:00
Text-slicer: Fix bug with nodes without a classname
This commit is contained in:
@@ -19,7 +19,7 @@ exports.processTermNode = function(domNode,tagName) {
|
||||
var title = this.makeUniqueTitle("term",text),
|
||||
parentTitle = this.parentStack[this.parentStack.length - 1].title,
|
||||
tags = [];
|
||||
if(domNode.className.trim() !== "") {
|
||||
if(domNode.className && domNode.className.trim() !== "") {
|
||||
tags = tags.concat(domNode.className.split(" "));
|
||||
}
|
||||
this.addToList(parentTitle,title);
|
||||
|
||||
Reference in New Issue
Block a user