Page 1 of 1

Noscript adds button to forms

Posted: Sat Oct 08, 2011 8:08 pm
by Grimeton
Hi,

I just wrote a few lines of html:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<body style="background-color:black;">
		<div style="position:absolute;top:50%;bottom:50%;left:25%;right:25%;text-align:center;">
			<font style="color:white;">
bleh
</font>
			<form action="/">
				<input type="text" name="lepassword" style="background:black;width:400px;border:0px;color:white;"/>
			</form>

		</div>
	</body>
</html>
When loading this code from the local drive (file://) everything is fine. The moment I load it from a webserver, there is a button added. Like a submit button. To avoid this I had to define my own submit button and then make it invisible.

Is this a expected behaviour or a bug?

Kr,

Grimeton

Re: Noscript adds button to forms

Posted: Sat Oct 08, 2011 8:43 pm
by Giorgio Maone
Grimeton wrote:Is this a expected behaviour or a bug?
It is expected behavior on pages where JavaScript is disabled, in order to make some forms which can only be submitted by JavaScript code usable nonetheless.