Fixed inline SVG in S5.

More S5 Stylesheet tweaks.
This commit is contained in:
Jacques Distler 2007-03-01 10:50:06 -06:00
parent 41ff4724b8
commit 6a7645c45c
5 changed files with 18 additions and 6 deletions

View file

@ -33,8 +33,8 @@ var isOp = navigator.userAgent.indexOf('Opera') > -1 ? 1 : 0;
var isGe = navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('Safari') < 1 ? 1 : 0;
function hasClass(object, className) {
if (!object.className) return false;
return (object.className.search('(^|\\s)' + className + '(\\s|$)') != -1);
if (!object.className ||!object.getAttribute('class')) return false;
return (object.getAttribute('class').search('(^|\\s)' + className + '(\\s|$)') != -1);
}
function hasValue(object, value) {