mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 10:26:15 -04:00
use cheerio instead of jsdom
This commit is contained in:
parent
97068b562d
commit
60d44cd3df
3 changed files with 11 additions and 10 deletions
|
@ -54,10 +54,14 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
},
|
||||
nodeNumChildren: function(n)
|
||||
{
|
||||
if(n.childNodes == null) return 0;
|
||||
return n.childNodes.length;
|
||||
},
|
||||
nodeChild: function(n, i)
|
||||
{
|
||||
if(n.childNodes.item == null){
|
||||
return n.childNodes[i];
|
||||
}
|
||||
return n.childNodes.item(i);
|
||||
},
|
||||
nodeProp: function(n, p)
|
||||
|
@ -66,6 +70,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
},
|
||||
nodeAttr: function(n, a)
|
||||
{
|
||||
if(n.getAttribute == null) return null;
|
||||
return n.getAttribute(a);
|
||||
},
|
||||
optNodeInnerHTML: function(n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue