[Webkit-unassigned] [Bug 37391] native runtime.js:392 Uncaught TypeError: object is not a function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 10 23:27:28 PDT 2010


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
                 CC|                            |ap at webkit.org

--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2010-04-10 23:27:29 PST ---
There are two mistakes here that prevent the code from running:
1) script type="text/js" is not a registered type, so browsers don't think it's
JavaScript, and simply ignore the content.
2) "form" in onclick handler means a property of the element - and
HTMLInputElement.form refers to a form that contains it. Since there is no form
around it, the property is null.

It works (fails) in exactly the same way in Firefox.

Please don't file bugs about code that doesn't work in any browser. There are
better places to ask for general help with web development.

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

More information about the webkit-unassigned mailing list