mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 01:57:34 +00:00
Text-slicer: Fix bug with nodes without a classname
This commit is contained in:
@@ -18,7 +18,7 @@ exports.processHeadingNode = function(domNode,tagName) {
|
||||
var title = this.makeUniqueTitle("heading",text),
|
||||
parentTitle = this.popParentStackUntil(tagName),
|
||||
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