From 46d107c3052b4dfdda5920f90fc5c5475f785008 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 10 Nov 2006 18:35:04 +0000 Subject: Skip stylesheet test for Konqueror as getPropertyValue does not work --- itjs/boot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/itjs/boot.js b/itjs/boot.js index 8ca539f..78d1fd1 100644 --- a/itjs/boot.js +++ b/itjs/boot.js @@ -50,12 +50,13 @@ function it_boot_report(msg, file, line, error) function it_boot(file, isretry) { window.it_domtimer = null; + var konqueror = navigator.userAgent.match(/konqueror/i); var doc = document; var dom = doc && (dom = document.getElementById('it_boot_dom')); // HTML has been rendered var view = dom && doc.defaultView; // We can check if stylesheet is active var style = view && view.getComputedStyle && view.getComputedStyle(dom, ''); - var css = style && style.getPropertyValue && (style.getPropertyValue("visibility") == "hidden"); // CSS active (inline style on tag) - var stylesheet = style && style.getPropertyValue && (style.getPropertyValue("display") == "none"); // External stylesheet loaded + var css = style && style.getPropertyValue && ((style.getPropertyValue("visibility") == "hidden") || konqueror); // CSS active (inline style on tag) + var stylesheet = style && style.getPropertyValue && ((style.getPropertyValue("display") == "none") || konqueror); // External stylesheet loaded if (!(doc || !(it_boot_status = "doc")) || !(dom || !(it_boot_status = "dom")) || (style && (style.length > 0) && !(stylesheet || !(it_boot_status = "stylesheet")))) { -- cgit v1.2.3