Boris Zbarsky napisał(a):

Do you have a testcase actually showing the problem?


This is better example (causes exactly same browser behaviour as in my application). When you press modify() button, a <span> tag is added over <input> tag.

It should not affect a <form>, but form stops works.

Maybe it is caused be some kind of tree reload, and everything is caused by that
what about I wrote in my previous post (misplacement <form> in DOM tree)?





<html>
<table>
<form name="wyszukaj" action="http://www.uml.lodz.pl/indeksik.php3?menu2=11&zapytanie=11,45"; 
method="post">

<tr><td><input size="10" name="szukaj" value="wybory">&nbsp;&nbsp;<input type="submit" 
value="Szukaj"></td></tr>
</form>
</table>

<script>
function foo()
{
  document.getElementsByTagName("input")[1].click();
}
</script>

<input type="button" onclick="foo()" value="Click here to call click()">

<script>
function modify()
{
  span= document.createElement("span");
  node= document.getElementsByTagName("input")[1];

  parent=node.parentNode;

  parent.replaceChild(span, node);
  span.appendChild(node);

}
</script>

<input type="button" onclick="modify()" value="Click here to do some modifycation to 
DOM tree">
</html>
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to