Update 0BDFDB.plugin.js
This commit is contained in:
parent
b338a723ed
commit
116cd9147b
|
@ -2577,8 +2577,8 @@ module.exports = (_ => {
|
||||||
else if (node.nodeType == Node.TEXT_NODE) return node.nodeValue;
|
else if (node.nodeType == Node.TEXT_NODE) return node.nodeValue;
|
||||||
let attributes = {}, importantStyles = [];
|
let attributes = {}, importantStyles = [];
|
||||||
if (typeof ref == "function") attributes.ref = ref;
|
if (typeof ref == "function") attributes.ref = ref;
|
||||||
for (let attr of node.attributes) attributes[attr.name] = attr.value;
|
if (node.attributes) for (let attr of node.attributes) attributes[attr.name] = attr.value;
|
||||||
if (node.attributes.style) attributes.style = BDFDB.ObjectUtils.filter(node.style, n => node.style[n] && isNaN(parseInt(n)), true);
|
if (node.attributes && node.attributes.style) attributes.style = BDFDB.ObjectUtils.filter(node.style, n => node.style[n] && isNaN(parseInt(n)), true);
|
||||||
attributes.children = [];
|
attributes.children = [];
|
||||||
if (node.style && node.style.cssText) for (let propStr of node.style.cssText.split(";")) if (propStr.endsWith("!important")) {
|
if (node.style && node.style.cssText) for (let propStr of node.style.cssText.split(";")) if (propStr.endsWith("!important")) {
|
||||||
let key = propStr.split(":")[0];
|
let key = propStr.split(":")[0];
|
||||||
|
|
Loading…
Reference in New Issue