[Webkit-unassigned] [Bug 13102] Javascript error messages
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 5 10:58:25 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=13102
ddkilzer at webkit.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
------- Comment #2 from ddkilzer at webkit.org 2007-04-05 10:58 PDT -------
The initial page (http://www.patagonia.com) has a parse error in the JavaScript
console from the Prototype library using a local debug build of WebKit r20722
with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135):
SyntaxError: Parse error
http://www.patagonia.com/usa/js/prototype.js Line: 1807
The top of the prototype.js file says:
/* Prototype JavaScript framework, version 1.4.0
* (c) 2005 Sam Stephenson <sam at conio.net>
My guess is that the site needs to update their version of the library (which
is 1.5.0 as of this writing).
The code that's borken (which may or may not be a legitimate bug):
var Cookie = {
set: function(name, value, daysToExpire) {
var expire = '';
if (daysToExpire != undefined) {
var d = new Date();
d.setTime(d.getTime() + (86400000 * parseFloat(daysToExpire)));
expire = '; expires=' + d.toGMTString();
}
return (document.cookie = escape(name) + '=' + escape(value || '') +
expire);
},
get: function(name) {
var cookie = document.cookie.match(new RegExp('(^|;)\\s*' + escape(name) +
'=([^;\\s]*)'));
return (cookie ? unescape(cookie[2]) : null);
},
erase: function(name) {
var cookie = Cookie.get(name) || true;
Cookie.set(name, '', -1);
return cookie;
},
accept: function() {
if (typeof (navigator.cookieEnabled) == 'boolean') {
return navigator.cookieEnabled;
}
Cookie.set('_test', '1');
return (Cookie.erase('_test') = '1'); // Line 1807
}
};
--
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