PDA

View Full Version : Ready.mobi error IS an error



SerpaDesigns
12-22-2007, 07:39 AM
Ok I ran the ready.mobi test on MobiURLs.mobi recently and I got this error:

Attribute name "selected" associated with an element type "option" must be followed by the ' = ' character.

In referring to my code:

<option selected value="Info">Information & Maps</option>

ALTHOUGH www.w3.org (http://www.w3.org/TR/html4/interact/forms.html#adef-selected) states:

selected
When set, this boolean attribute specifies that this option is pre-selected.

and shows example:

<OPTION selected value="Component_1_a">Component_1</OPTION>

Am I missing something here or is Ready.mobi in error?

Devin Serpa

Scandiman
12-22-2007, 02:54 PM
Be sure to post any concerns at the dev.mobi forum. I'm sure they will like to get your feedback.

gogo
12-22-2007, 03:21 PM
IMO some of the error messages there are errors or badly worded, they say your code is not valid xhtml 1.0 after it has been validated at W3. They do need to improve.

Mentioned a bit earlier here http://mobility.mobi/showthread.php?t=2755&highlight=nuts

SerpaDesigns
12-23-2007, 06:58 PM
I read that thread thanks, similar problems, I know never to patron godaddy now... so it's safe to say my sites are ok just ignore ready.mobi huh? :P

GijsZePa
12-24-2007, 07:21 AM
Ok I ran the ready.mobi test on MobiURLs.mobi recently and I got this error:

Attribute name "selected" associated with an element type "option" must be followed by the ' = ' character.

In referring to my code:

<option selected value="Info">Information & Maps</option>

ALTHOUGH www.w3.org (http://www.w3.org/TR/html4/interact/forms.html#adef-selected) states:

selected
When set, this boolean attribute specifies that this option is pre-selected.

and shows example:

<OPTION selected value="Component_1_a">Component_1</OPTION>

Am I missing something here or is Ready.mobi in error?

Devin Serpa

Mmmm..strange..

Maybe you could try this:
Not Selected...
<option selected="false" value="Info">Information & Maps</option>

Selected
<option selected="true" value="Info">Information & Maps</option>

Martin

SerpaDesigns
12-24-2007, 08:08 AM
Mmmm..strange..

Maybe you could try this:
Not Selected...
<option selected="false" value="Info">Information & Maps</option>

Selected
<option selected="true" value="Info">Information & Maps</option>

Martin

Oh believe me I've tried this, still an error...

<option selected="true" value="Info" >Information & Maps</option>

renders:

Attribute "selected" with value "true" must have a value from the list "selected ".

Besides selected is the preferred way as found on www.w3.org

Devin Serpa

GijsZePa
12-24-2007, 08:53 AM
Oh believe me I've tried this, still an error...

<option selected="true" value="Info" >Information & Maps</option>

renders:

Attribute "selected" with value "true" must have a value from the list "selected ".

Besides selected is the preferred way as found on www.w3.org (http://www.w3.org)

Devin Serpa

Sorry Devin..wrong info: This should work: selected="selected"

superdomains.mobi
12-24-2007, 04:05 PM
<option selected="selected" value="Info"> will work.

cheers

SerpaDesigns
12-26-2007, 06:05 AM
Thank you! <option selected="selected" value="Info"> does work. I couldn't find that piece of info anywhere on the web, only found true or false... Anyways thanks! Now I have other errors to work around haha...


Devin Serpa