This commit is contained in:
John McLear 2014-12-31 14:16:10 +00:00
parent 036b7d2890
commit 8eb723b906
1 changed files with 5 additions and 1 deletions

View File

@ -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){