Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem ze zgodnością XHTML 1.0 przez link do forum
kamil881
post
Post #1





Grupa: Zarejestrowani
Postów: 55
Pomógł: 0
Dołączył: 21.09.2007
Skąd: Mielec

Ostrzeżenie: (0%)
-----


Witam,
Mam problem z validacją na stronie. W newsie musiałem dodać link do pewnego tematu na forum i validator pokazuje mi take błędy:
Cytat
  1. (IMG:http://validator.w3.org/images/info_icons/warning.png) Line 50, Column 812: cannot generate system identifier for general entity "t".…embermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are

    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon ( (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) . The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

    Entity references start with an ampersand (&) and end with a semicolon ( (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) . If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
  2. (IMG:http://validator.w3.org/images/info_icons/error.png) Line 50, Column 812: general entity "t" not defined and no default entity.…embermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
  3. (IMG:http://validator.w3.org/images/info_icons/warning.png) Line 50, Column 813: reference not terminated by REFC delimiter.…mbermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are o

    If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
  4. (IMG:http://validator.w3.org/images/info_icons/warning.png) Line 50, Column 813: reference to external entity in attribute value.…mbermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are o

    This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.
  5. (IMG:http://validator.w3.org/images/info_icons/error.png) Line 50, Column 813: reference to entity "t" for which no system identifier could be generated.…mbermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are o

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
  6. (IMG:http://validator.w3.org/images/info_icons/info.png) Line 50, Column 811: entity was defined here.…tembermusic.com.pl/viewtopic.php?f=33&t=28" target="_blank">topic</a>. We are
  7. (IMG:http://validator.w3.org/images/info_icons/error.png) Line 50, Column > 80: XML Parsing Error: EntityRef: expecting ';'.…; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;"><img src=…

Jak się z tym uporać? Proszę o pomoc i z góry dziekuję.
Pozdrawiam,
Kamil

Ten post edytował kamil881 17.05.2008, 08:04:08
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
koderrr
post
Post #2





Grupa: Zarejestrowani
Postów: 255
Pomógł: 16
Dołączył: 4.07.2007

Ostrzeżenie: (0%)
-----


usun target blank
Go to the top of the page
+Quote Post
kamil881
post
Post #3





Grupa: Zarejestrowani
Postów: 55
Pomógł: 0
Dołączył: 21.09.2007
Skąd: Mielec

Ostrzeżenie: (0%)
-----


Nic się nie zmieniło.
Go to the top of the page
+Quote Post
tommy4
post
Post #4





Grupa: Zarejestrowani
Postów: 288
Pomógł: 12
Dołączył: 2.12.2005

Ostrzeżenie: (0%)
-----


'&' musi być zamienione na '&amp;'.

Zresztą masz to nawet napisane:

Cytat
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


Pozdrawiam.

Ten post edytował tommy4 17.05.2008, 08:34:46
Go to the top of the page
+Quote Post
kamil881
post
Post #5





Grupa: Zarejestrowani
Postów: 55
Pomógł: 0
Dołączył: 21.09.2007
Skąd: Mielec

Ostrzeżenie: (0%)
-----


Dzieki serdeczne. Teraz wszystko jest wporządku (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Pozdrawiam.
Go to the top of the page
+Quote Post
koderrr
post
Post #6





Grupa: Zarejestrowani
Postów: 255
Pomógł: 16
Dołączył: 4.07.2007

Ostrzeżenie: (0%)
-----


sadzilem ze uzywasz wersji strict
tam ten atrybut jest niedozwolony
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 12:13