• Resolved simplymother

    (@simplymother)


    I’m using the code given by Twitter:

    <div id="twitter_div">
    <h3>Little Bits</h3>
    <ul id="twitter_update_list"></ul>
    
    <ul class="no-bullets"><li><a href="http://twitter.com/simplymother" id="twitter-link" style="display:block;text-align:right;">Follow me on Twitter</a></li></ul>
    </div>

    (plus the script stuff which I’m not including. The problem seems to be the with the ul that contains the updates.

    When I go to View Source, it doesn’t show any problems, but when I try to validate the HTML, I get this.

    I can’t see anything nested wrong. It also says basically I might have a parent with no children–which would make sense, since the li’s don’t show up at all when I “view source”. Is there any way to fix this so my site validates? Or am I not seeing something very simple?

    Thanks in advance!

    Kate

    http://simplymother.com

    (BTW, I posted this in the how to forum, but it seems to get buried immediately and I thought this may be a more apt place for it anyway.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter simplymother

    (@simplymother)

    Anybody, anybody? I know lots of people put their Tweets on their blogs–there must be a way to do it that is valid, right?

    Thread Starter simplymother

    (@simplymother)

    Aha, well, I found my own fix. It’s probably terribly incorrect, but it’s working and my site is validating.

    The problem, as far as I can tell, is that my sidebar.php has the code <ul></ul> but no li’s inside it, because those are called from a script (I’m probably using all the wrong terminology, sorry.) Anyway, my tweets, as li’s, don’t appear in the source code of my site, so there just appears to be an empty unordered list.

    I first tried to fix it by just adding

    • in between the ul’s, and that validated, but when I “view source” it still gave me a warning to trim the empty li’s. So I just put a random word in between the li’s and it doesn’t show up on my site (which I can’t figure out why, but that’s what I’m going for anyway!) and my site validates with no warnings! Hooray!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Twitter updates invalidating my site’ is closed to new replies.