diff options
author | John McLear <john@mclear.co.uk> | 2014-12-31 14:16:10 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2014-12-31 14:16:10 +0000 |
commit | 8eb723b90618bf186e4073254ed2b88b1c1d29a3 (patch) | |
tree | 82ce2a812bc236b56b7b7e41566bb0978353cb41 /src/static/js/contentcollector.js | |
parent | 036b7d28902f768e056013ff87dc1da2b6d4c8a1 (diff) | |
download | etherpad-lite-8eb723b90618bf186e4073254ed2b88b1c1d29a3.zip |
patch for e1c683be3f47a350e6bac3146507bd2d7d7478f6
Diffstat (limited to 'src/static/js/contentcollector.js')
-rw-r--r-- | src/static/js/contentcollector.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index b33b1e6e..e90783ae 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -518,7 +518,11 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class } if (tname == "ul" || tname == "ol") { - var type = node.attribs.class; + if(node.attribs){ + var type = node.attribs.class; + }else{ + var type = null; + } var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls); // lists do not need to have a type, so before we make a wrong guess, check if we find a better hint within the node's children if(!rr && !type){ |