/[webpac2]/trunk/web/iwf/iwfajax.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/web/iwf/iwfajax.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by dpavlin, Tue Nov 15 14:29:59 2005 UTC revision 66 by dpavlin, Wed Nov 16 15:33:08 2005 UTC
# Line 458  function _iwfInsertHtml(html, parentNode Line 458  function _iwfInsertHtml(html, parentNode
458                          // our html to inject contains a form node.                          // our html to inject contains a form node.
459                          // bubble up the chain until we find a <form> node, or we have no parents                          // bubble up the chain until we find a <form> node, or we have no parents
460                          var elParent = el;                          var elParent = el;
461                          while (elParent && elParent.tagName.toLowerCase() != 'form'){                          // I have doubts about adding elParent.tagName here
462                            // but I don't have better idea. -dpavlin
463                            while (elParent && elParent.tagName && elParent.tagName.toLowerCase() != 'form'){
464                                  elParent = iwfGetParent(elParent);                                  elParent = iwfGetParent(elParent);
465                          }                          }
466    
467                          if (elParent && elParent.tagName.toLowerCase() == 'form'){                          if (elParent && elParent.tagName && elParent.tagName.toLowerCase() == 'form'){
468                                  iwfLog('IWF Ajax Error: Attempting to inject html which contains a <form> node into a target element which is itself a <form> node, or is already contained by a <form> node.\nThis is bad html, and will not work appropriately on some major browsers.', true);                                  iwfLog('IWF Ajax Error: Attempting to inject html which contains a <form> node into a target element which is itself a <form> node, or is already contained by a <form> node.\nThis is bad html, and will not work appropriately on some major browsers.', true);
469                          }                          }
470                  }                  }

Legend:
Removed from v.65  
changed lines
  Added in v.66

  ViewVC Help
Powered by ViewVC 1.1.26