dont expect safari
parent
c6b0c92061
commit
1cbaf2d272
|
@ -432,7 +432,7 @@ const makeContentCollector = function (
|
|||
let styl = dom.nodeAttr(node, 'style');
|
||||
let cls = dom.nodeAttr(node, 'class');
|
||||
let isPre = (tname === 'pre');
|
||||
if ((!isPre) && abrowser.safari) {
|
||||
if ((!isPre) && abrowser && abrowser.safari) {
|
||||
isPre = (styl && /\bwhite-space:\s*pre\b/i.exec(styl));
|
||||
}
|
||||
if (isPre) cc.incrementFlag(state, 'preMode');
|
||||
|
|
Loading…
Reference in New Issue