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.
The problem is that the markup is invalid. The parser fixes it up, but as a result the <input> is not actually a descendant of the <form> in the DOM.
Now we hack things so just submitting the form works, because this sort of markup is somewhat common. But if you remove the <input> from the DOM (as you do) and then reinsert it at the same spot, it's not inside the <form> so it won't be submitted with the form.
In general, if you combine invalid markup with DOM manipulation, you _will_ run into problems, since the parser will rearrange things to create a reasonable DOM out of the junk that's fed into it....
-Boris _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
