Author: knopp
Date: Fri Apr 13 02:31:09 2007
New Revision: 528403

URL: http://svn.apache.org/viewvc?view=rev&rev=528403
Log:
doc, formatting fixes

Modified:
    
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Modified: 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?view=diff&rev=528403&r1=528402&r2=528403
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 Fri Apr 13 02:31:09 2007
@@ -137,6 +137,8 @@
  * is similiar to calling element.outerHtml=text in internet explorer. However
  * this method also takes care of executing javascripts within the markup on
  * browsers that don't do that automatically.
+ * Also this method takes care of replacing table elements (tbody, tr, td, 
thead)
+ * on browser where it's not supported when using outerHTML (IE, Opera).
  */
 Wicket.replaceOuterHtml = function(element, text) {    
     if (element.outerHTML) { // internet explorer or opera support outerHtml
@@ -171,8 +173,6 @@
                        
                        // we may have inserted multiple elements, so we need 
to take care of all of them
                        var tempParent = 
tempDiv.getElementsByTagName(tn).item(0).parentNode;
-
-
 
                        while(tempParent.childNodes.length > 0) {
                                var tempElement = tempParent.childNodes[0];


Reply via email to