Update parser.js

This commit is contained in:
asturur 2014-06-21 14:22:10 +02:00
parent 54f5cf11e5
commit 35eebc0376

View file

@ -76,7 +76,7 @@
else if (attr === 'visible') {
value = (value === 'none' || value === 'hidden') ? false : true;
// display=none on parent element always takes precedence over child element
if (typeof(parentAttributes.visible) != 'undefined' && parentAttributes.visible === false) {
if (parentAttributes && parentAttributes.visible === false) {
value = false;
}
}