dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Posted by ph3n0m 3 years 10 weeks ago

pic
 ph3n0m
Mobile Addict
Posts: 29
Joined: 4 years ago
[offline]

Hi all

I am using the following code in my page

<div><input type="text" name="status"/><br/>
		<input type="image" src="images/update_status2.gif" name="send" value="submit"/>
		<input type="image" src="images/clear.gif" name="clear" value="reset"/>
	</div>

However when I run the page through ready.mobi, I get a validation error of type

Quote:
Attribute "type" with value "image" must have a value from the list "text password checkbox radio submit reset hidden ".

However as evident from the code above, the value is declared for both of them - any ideas what the issue is. I have confirmed it is definitely these two lines, as once I remove them from the source, the page validates perfectly

Posted by ruadhan 3 years ago

pic
 ruadhan
dotMobi logo
Mobile Champion
Posts: 710
Joined: 5 years ago
[offline]

Hmmm, apparently type="image" is not a valid XHTML MP attribute...

Ruadhan O'Donoghue
dotMobi

Posted by ph3n0m 3 years ago

pic
 ph3n0m
Mobile Addict
Posts: 29
Joined: 4 years ago
[offline]

Ah the ready.mobi error message is incorrect, I believe it should read

Quote:
value of attribute "type" cannot be "image"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "hidden".

Atleast that reads a tad better

Posted by ruadhan 3 years ago

pic
 ruadhan
dotMobi logo
Mobile Champion
Posts: 710
Joined: 5 years ago
[offline]

Yes, that's what it's trying to say. Can you achieve what you want with a bit of CSS, falling back to standard button rendering on devices where the CSS is not supported?

Ruadhan O'Donoghue
dotMobi