Commit 122d998e authored by Guillaume's avatar Guillaume
Browse files

node.style can be undefined

For instance, on <math> element: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/math

resolves #190
parent 51c88fd4
......@@ -340,7 +340,7 @@ export function isContainer(node) {
return true;
}
if (node.style.display === "none") {
if (node.style && node.style.display === "none") {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment