WordPress.org

Ready to get started?Download WordPress

Forums

XHTML Help! Please? (8 posts)

  1. edreams
    Member
    Posted 9 years ago #

    Can anyone tell me how I could make this XHTML valid?
    Thanks!
    <?php
    $feedUrl = "http://www.azcentral.com/rss/feeds/news.xml"; // enter your feed's url here
    $feedOut = getSomeFeed($feedUrl, 5, false, "feed-azcentral", '', 36); // enter a cache name
    if (!empty($feedOut))
    {
    start_block("AZ News", "feedread", "li");
    echo $feedOut;
    end_block();
    }
    ?>

  2. NuclearMoose
    Member
    Posted 9 years ago #

    Well, that is all PHP code, not XHTML. What specific issues are you having with validation? The validation tools that are available can be a bit cryptic, I know, but they really are your best bet for narrowing down specific problems.

  3. edreams
    Member
    Posted 9 years ago #

    I really dont understand any of them LOL
    Here they are:
    Line 253, column 17: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
    <li id='feedread'>
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    One possible cause for this message is that you have attempted to put a block-level element (such as "" or "<table>") inside an inline element (such as "", "<span>", or "<font>").
    ✉
    Line 264, column 99: character "$" not allowed in attribute specification list
    ...f the pipelines that deliver…" $CGTargetWindow>
    ✉
    Line 270, column 105: character "$" not allowed in attribute specification list
    ... before he was found dead in…" $CGTargetWindow>
    ✉
    Line 276, column 108: character "$" not allowed in attribute specification list
    ...t until Election Day to cast…" $CGTargetWindow>
    ✉
    Line 282, column 104: character "$" not allowed in attribute specification list
    ...#039;s Playhouse Parade 2004…" $CGTargetWindow>
    ✉
    Line 288, column 103: character "$" not allowed in attribute specification list
    ...University of Arizona police…" $CGTargetWindow>

    ✉

  4. Root
    Member
    Posted 9 years ago #

    Prolly the list needs to go in ul.. That will get you started.

  5. edreams
    Member
    Posted 9 years ago #

    the whole code?

  6. edreams
    Member
    Posted 9 years ago #

    ok, I did that, and Im still getting these errors...
    Line 265, column 99: character "$" not allowed in attribute specification list
    ...f the pipelines that deliver…" $CGTargetWindow>
    ✉
    Line 271, column 105: character "$" not allowed in attribute specification list
    ... before he was found dead in…" $CGTargetWindow>
    ✉
    Line 277, column 108: character "$" not allowed in attribute specification list
    ...t until Election Day to cast…" $CGTargetWindow>
    ✉
    Line 283, column 104: character "$" not allowed in attribute specification list
    ...#039;s Playhouse Parade 2004…" $CGTargetWindow>
    ✉
    Line 289, column 103: character "$" not allowed in attribute specification list
    ...University of Arizona police…" $CGTargetWindow>

  7. edreams
    Member
    Posted 9 years ago #

    could anyone help at all???

  8. NuclearMoose
    Member
    Posted 9 years ago #

    edreams,
    I just visited your site and had a look for myself. I think that the best way for you to solve this is to go to David Chait's site and post something there, since this is specific to one of his plugins.
    http://www.chait.net

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.