PDA

View Full Version : Failed Markup on Ready.mobi



texasgamer
07-03-2007, 03:30 AM
If there is anyone familiar with php that can help me sort this out, I would be like totally appreciative. I am trying to get a higher score at www.ready.mobi (http://www.ready.mobi) on one of my sites.

Here is the error I am getting:

Valid Markup
This Test Failed
You should use valid XHTML Mobile Profile for your pages. Non-validating markup may not display correctly or efficiently on mobile devices. In some cases, particularly on older phones, non-validating XHTML-MP will not render at all, and the user will see only an error message in their browser.
FAIL near line 17 column 69
The reference to entity "sort" must end with the ';' delimiter.

And here is my line 17:

<div class="navItem2">2. <a href="directory.php?action=viewall&sort=popular" accesskey="2">Most Popular Sites</a></div>

Thanks,
Ray

Scandiman
07-03-2007, 04:11 AM
Hi Ray, I'm no expert but I'll give it a peek. Am I right in assuming that the site works fine?

Can you post some additional lines of code for your other nav items? I'd just like to compare them with this one.

texasgamer
07-03-2007, 04:20 AM
Yes the site works fine. I will pm you the site name....maybe you can have a looksee?

fathomjh
07-03-2007, 08:07 AM
I would indeed also need to see the code to verify the error; however, ";" signifies the end of a command in programming. Thus, each end of line needs the ";."

dartho
07-05-2007, 09:23 AM
to be valid markup, you will need to change the "&" to "&amp;" as below

<div class="navItem2">2. <a href="directory.php?action=viewall&amp;sort=popular" accesskey="2">Most Popular Sites</a></div>


http://mobility.mobi/images/icons/icon14.gif

texasgamer
07-06-2007, 02:15 PM
Dartho,
Thank you so much! :) It worked!!!
I tried to give you some more rep, but it won't let me!~

Scandiman
07-06-2007, 02:17 PM
Dartho,
Thank you so much! :) It worked!!!
I tried to give you some more rep, but it won't let me!~
I did it for you. Great assistance Dartho!

fathomjh
07-06-2007, 08:43 PM
Good find!