SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validation problem

    i'm trying to validate my page, but i get this error msg, which i dont get:

    Error Line 26, column 331: character " " not allowed in attribute specification list .
    ...arlo, como é hábito. Este <a class="texto" href="http://www...
    i'm using:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    what is wrong there?
    thanks in advance
    Last edited by stymiee; Jun 15, 2006 at 13:32.

  2. #2
    SitePoint Member JustinG's Avatar
    Join Date
    Feb 2006
    Location
    Texas
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Way confused..

    Mind typing what you need help with and putting all your code in the "[code]" bbcode.
    My blog l Dallas Web Design

  3. #3
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's highlighting " then it's either because you've got an invalid character (ie one copied from Word) or because you're missing a closing " on a previous attribute.

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    ok: as i said, i'm trying to validate a XHTML 1.0 Transitional page and when i go to w3c validator, i get this message:
    Error Line 26, column 331: character " " not allowed in attribute specification list .
    ...arlo, como é hábito. Este <a class="texto" href="http://www.
    here's my line 26:
    HTML Code:
    <p><span class="horas">16:34</span> a inteligência artificial (IA) é usada pelo <em>Snowie</em>, um software que joga melhor gamão que ninguém. Este programa vai analizar, em directo, as meias finais e a final do campeonato do mundo de gamão, a ser jogado entre 10 e 16 de julho em Monte Carlo, como é hábito. Este <a class="texto" href="http://www.blabla.com/">site</a> vai transmitir esses jogos on-line. Para saber mais, leia <a class="texto" href="http://www.blabla.com/article-detail.php?articleID=10769">isto</a>.</p>
    hope its ok now

  5. #5
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tyssen
    If it's highlighting " then it's either because you've got an invalid character (ie one copied from Word) or because you're missing a closing " on a previous attribute.
    i guess it isnt the case: all is well with respect to that...

  6. #6
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you give us a link to the page?

  7. #7
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  8. #8
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got me stumped. I just copied your HTML, saved it and validated my local copy and it came out fine. :?

  9. #9
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    html is generated from php script, but anyway could you try validating it, to check what i complainted above?
    tx

  10. #10
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  11. #11
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did. I saw the errors on your site and couldn't see what was wrong so I recreated your page locally and it validated fine. Like I said, I don't know the answer to this problem.

  12. #12
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot, anyway!

  13. #13
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have non-breaking spaces (U+00A0) in your tags. (When you copy non-breaking spaces they are converted to regular spaces, I think.)
    <a·class="texto"(A0)·href="http://www.truemoneygames.com/">
    -- http://www.rexswain.com/httpview.html
    Simon Pieters

  14. #14
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great! really great - that's true
    i removed spaces and added them manually, and now page validates
    i wrote some javascript to insert links when i post, hence the non-breaking spaces:
    HTML Code:
    function link() {
    document.getElementById("texto").innerHTML = document.getElementById("texto").innerHTML + '&lt;a class="texto"&nbsp; href=""&gt;&lt;/a&gt;';
    }
    thanks a lot!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •