[Webkit-unassigned] [Bug 19316] JavaScrip doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 29 22:07:48 PDT 2008


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


mrowe at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from mrowe at apple.com  2008-05-29 22:07 PDT -------
The JavaScript on that site is incorrect:

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
}


This code generates an exception in WebKit:
ReferenceError: Can't find variable: obj slideshow_intro.js (line 131)

Note how the code refers to "this.degree" in the IE and Firefox cases, but
obj.degree in the KHTML/WebKit case.


-- 
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