form.method = 'POST' raises an error
Reported by Liam Clancy (metafeather) | December 14th, 2009 @ 01:04 AM | in 1.2.x
There is a minor typo in the setter for a FORM elements 'method' attribute:
[scribble]: metafeather $ ant concat
Buildfile: build.xml
concat:
[echo] Building /Users/Shared/Dropbox/MF/Code/git/env-js/dist/env.1.1.rc2.js
[echo] /Users/Shared/Dropbox/MF/Code/git/env-js/dist/env.1.1.rc2.js built.
[copy] Copying 1 file to /Users/Shared/Dropbox/MF/Code/git/env-js/dist
[echo] Building /Users/Shared/Dropbox/MF/Code/git/env-js/dist/env.rhino.1.1.rc2.js
[echo] /Users/Shared/Dropbox/MF/Code/git/env-js/dist/env.rhino.1.1.rc2.js built.
[copy] Copying 1 file to /Users/Shared/Dropbox/MF/Code/git/env-js/dist
BUILD SUCCESSFUL
Total time: 1 second
[scribble]: metafeather $ java -jar dist/env-js.jar
Rhino 1.7 release 3 PRERELEASE 2009 07 08
js> load('dist/env.rhino.js')
js> var form = document.createElement('form')
js> form.method = 'POST'
js: "dist/env.rhino.js", line 7057: uncaught JavaScript runtime exception: ReferenceError: "method" is not defined.
at dist/env.rhino.js:7057
at <stdin>:4
js>
Comments and changes to this ticket
-
Liam Clancy (metafeather) December 14th, 2009 @ 01:08 AM
After applying the fix to src/html/form.js line 47
js> var form = document.createElement('form') js> form.method = 'POST' POST js>
-
Thatcher February 3rd, 2010 @ 05:33 PM
- State changed from new to open
- Assigned user set to Thatcher
- Milestone set to envjs.com - corrections and updates
looking into this. sorry for the delay.
thatcher
-
Thatcher February 5th, 2010 @ 05:19 PM
- State changed from open to resolved
- Tag changed from form, rhino, setter to method post, form, rhino, setter
- Milestone changed from envjs.com - corrections and updates to 1.2.x
fixed, so sorry for the delay
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a javascript browser environment