is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Closed 14 years ago

#335 closed bug (fixed)

jForms DOM acces to <FORM>

Reported by: tefnout Owned by:
Priority: normal Milestone: Jelix 1.0 RC1
Component: jelix:forms Version: 1.0 beta 3.1
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description (last modified by laurentj)

in jform.js, at begining of function verifyForm (l.52), maybe replace

   var f = this._forms[frmElt.getAttribute('id')];


  var f = this._forms[frmElt.attributes.getNamedItem("id").value];	

Seems that the two are DOM-conformant but for exemple, in :

<FORM id='foo' action='bar'>
  <INPUT name='foo'/>

in the first case :

-IE returns the <INPUT> object (getAttribute should return a String,in or bool according to MSDN....)
-Firefox and Opera return 'foo'

in the second case, each of them returns 'foo'

Change History (2)

comment:1 Changed 14 years ago by laurentj

  • Description modified (diff)
  • Milestone set to Jelix 1.0
  • Severity changed from normal to major

comment:2 Changed 14 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

Corrigé dans le trunk. Merci pour la solution.

Note: See TracTickets for help on using tickets.