I have a problem with a "html page" that has a form outside the <html>
tags. The page source goes something like this:
<form action="http://www.domain.com/cgi-bin/something.pl" NAME="dot"
<INPUT TYPE="hidden" NAME="x" value="25">
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
I renders an error in Firefox 'cause the dot form isn't recognised
("document.form.dot has no propreties").
Is it possible to fix this with greasemonkey? I've tried a delayed
submit like the delayed helloworld in the dive into grease monkey with
If I do it ( document.forms['dot'].submit() ) from the java shell
after the page loads, it works.
This does not have to do with the location of the form in the HTML
source. If you open the DOM Inspector, you will see that Firefox
interprets and reorganizes the DOM so that HTML is the root element.
Your problem is "common Greasemonkey pitfall" number 3 from this
article: <http://www.oreillynet.com/lpt/a/6257> The fix is in the
section labeled Pitfall #3, but the whole article is pretty much
required reading for anybody writing Greasemonkey scripts.