[Webkit-unassigned] [Bug 13358] REGRESSION: ReferenceError: Can't find variable in DHTML slideshow script

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 16 03:16:23 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13358





------- Comment #2 from ddkilzer at webkit.org  2007-04-16 03:16 PDT -------
Loading the page with Drosera, the error is happening in this function (line
168 in the original document):

fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] :
document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100  // ERROR: Line 168
}

This looks like it may be a typo.  Should "obj.degree" be "this.degree"
instead, or perhaps "crossobj.degree"?  (But why does shipping Safari not throw
an exception here?  Perhaps it's not as strict as ToT WebKit is.)

And should WebKit still define crossobj.style.KhtmlOpacity?


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list