[Webkit-unassigned] [Bug 10934] REGRESSION: prototype.js logs error (HTMLFormElement) on webkit builds
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 16 03:46:34 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=10934
------- Comment #7 from ddkilzer at webkit.org 2007-01-16 03:46 PDT -------
Here's the JavaScript that builds HTMLFormElement:
if (!window.HTMLElement && /Konqueror|Safari|KHTML/.test(navigator.userAgent))
{
/* Emulate HTMLElement, HTMLFormElement, HTMLInputElement,
HTMLTextAreaElement,
and HTMLSelectElement in Safari */
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) {
var klass = window['HTML' + tag + 'Element'] = {};
klass.prototype = document.createElement(tag ? tag.toLowerCase() :
'div').__proto__;
});
}
--
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