#81 ✓resolved
Liam Clancy (metafeather)

form.method = 'POST' raises an error

Reported by Liam Clancy (metafeather) | 2009-12-14 01:04:58 UTC | 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)

    Liam Clancy (metafeather) 2009-12-14 01:08:16 UTC

    After applying the fix to src/html/form.js line 47

    js> var form = document.createElement('form')
    js> form.method = 'POST'
    POST
    js>
    
  • Thatcher

    Thatcher 2010-02-03 17:33:59 UTC

    • 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

    Thatcher 2010-02-05 17:19:54 UTC

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

New-ticket Create new ticket

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

People watching this ticket

Pages