mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
Fix the way Content Collector gets the node class. Fixes #2640
This commit is contained in:
parent
e1406b826b
commit
58ab17bf9e
1 changed files with 4 additions and 3 deletions
|
@ -71,8 +71,9 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
|||
},
|
||||
nodeAttr: function(n, a)
|
||||
{
|
||||
if(n.getAttribute == null) return null;
|
||||
return n.getAttribute(a);
|
||||
if(n.getAttribute != null) return n.getAttribute(a);
|
||||
if(n.attribs != null) return n.attribs[a];
|
||||
return null;
|
||||
},
|
||||
optNodeInnerHTML: function(n)
|
||||
{
|
||||
|
@ -516,7 +517,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
|||
else if (!isEmpty)
|
||||
{
|
||||
var styl = dom.nodeAttr(node, "style");
|
||||
var cls = dom.nodeProp(node, "className");
|
||||
var cls = dom.nodeAttr(node, "class");
|
||||
var isPre = (tname == "pre");
|
||||
if ((!isPre) && abrowser.safari)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue