WordPress.org

Ready to get started?Download WordPress

Forums

grins xhtml 1.0 trans not compliant (14 posts)

  1. PhillipH
    Member
    Posted 9 years ago #

    For some reason im obsessed with getting compliancy :-) - anyone know how to get the wp-grins.php plugin validated? if you click one of my comments at http://www.magiknights.liquenox.net/weblog and then click the xhtml w3 graphic you will see the problem. thanks.

  2. cdturri
    Member
    Posted 9 years ago #

    Try closing the < p > tag before you start DIV on line 115.

  3. PhillipH
    Member
    Posted 9 years ago #

    thanks yup, got that error out. i also had to add in a /> to close a tag too. Only ones to get rid of now are :

    Line 122, column 40: character "&" is the first character of a delimiter but occurred as data

    any ideas? thanks.

  4. PhillipH
    Member
    Posted 9 years ago #

    btw its the &'s in here it doesnt appear to like :

    if (document.getElementById('content') && document.getElementById('content').type == 'textarea') {
    myField = document.getElementById('content');
    }
    else if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {
    myField = document.getElementById('comment');

  5. John
    Member
    Posted 9 years ago #

    try & amp ; (remove spaces) you should also switch from the wp-online plugin to http://blog.noontide.ca/?p=9 pretty much the same functionalite but the page that display is more standards compliant

  6. PhillipH
    Member
    Posted 9 years ago #

    Great, thanks J2000, that worked a treat :-)

  7. m8rk
    Member
    Posted 9 years ago #

    Pah! - didn't work for me :(

    If I alter the double ampersand the smilies are no longer clickable - although the page then validates faultlessly [it validates with warnings otherwise and the css validator refuses to run]

    The wp-grins call isn't within any other tags either ...stuck! :(

  8. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It is all okay - check tags above the wp_grins call.
    I had the same issue at first and I can't recall how I fixed it, but it does work and it is valid

  9. m8rk
    Member
    Posted 9 years ago #

    Damn! [thanks for the quick reply btw]

    I was hoping it was wp-grins! ;P

    I've just been through the thing with a fine tooth comb - looking at all the tags and checking with dreamweavers validation tools. What else should I be looking for?

  10. Mark (podz)
    Support Maven
    Posted 9 years ago #

  11. m8rk
    Member
    Posted 9 years ago #

    aye! - but not the comments pages: http://cgi.s1mps.plus.com/wordpress/?p=23#comments
    http://validator.w3.org/check?uri=http%3A%2F%2Fcgi.s1mps.plus.com%2Fwordpress%2F%3Fp%3D23
    for example - and it then stalls the css validator

    [really appreciate your help with this btw]

  12. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I get that too.
    My xhtml does validate and I put the CSS validator error in parsing the xhtml file as being "one of those things".

    My xhtml validates
    My CSS validates
    You have the same.

    The CSS validator obviously cannot cope (yet) when mixed.

  13. m8rk
    Member
    Posted 9 years ago #

    Ah - ok. Thanks for your time. I'll relax then :P

    Cheers!

  14. rossz
    Member
    Posted 9 years ago #

    If your javascript is all in a function you simply wrap it in comments and the validator will ignore it:

    <!--
    javascript functions go here
    -->

    Be sure to put them back to proper ampersands, not the encoded ones since javascript won't know what to do otherwise.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.