Posted by goransv2 2 years 22 weeks ago
I have a xhtml-mp 1.2 page that I have tride to validate it with mobiready and got rating 4, but also got this
error:FAIL
Does not validate against XHTML Basic 1.1
FAIL
Does not validate against XHTML Mobile Profile 1.2
WARN
Does not validate against its stated doctype
And in W3C mobile check I got this FORM error:
Line 266, Column 8 — The content of element type "form" must match "(h1|h2|h3|h4|h5|h6|ul|ol|dl|p|div|pre|blockquote|address|hr|table|script|noscript|fieldset)+".
Line 286, Column 8 — The content of element type "form" must match "(h1|h2|h3|h4|h5|h6|ul|ol|dl|p|div|pre|blockquote|address|hr|table|script|noscript|fieldset)+".
My FORM I think is a basic form
and should validate with XHTML-MP 1.2
Does anyone have any sugestions how to proceed ans solve this problem?




Posted by garbetjie 2 years ago
Hi goransv2.
Would you be able to provide us with a link to the page, or a sample of the offending HTML? That could help a bit.
Posted by goransv2 2 years ago
Sample:
Posted by garbetjie 2 years ago
Hey goransv2.
I took a look at the markup you supplied, and I've managed to track down where the errors are coming in.
One thing I might suggest, is that you use the mobiready tool, in conjunction with the W3 validator. The two together make for a very powerful combination when validating markup.
The problem you're experiencing comes in with some invalid markup that is contained within your pages. As an example, you've got some inline markup that needs to be contained within a block element (
<select>directly in a<form>element, with no wrapping<div>or<p>.If you run the code as-is, through the W3 validator, you'll see some fairly detailed errors coming through, and you'll see where to make changes. I'm quite certain the mobiready tool can do something similar, I was just a little too impatient to look for it ;)
Hope this helps!