Валидиране

svilkaa

Registered
Кажете как да валидирам грешките в кода на флирт4е:
http://validator.w3.org/check?uri=http%3A%2F%2Fmuzi4ka.com%2F%3Fp%3D&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0

Ето и кода
Код:
<script type="text/javascript" src="http://void.flirt4e.com/js/flirt4e_pics.js"></script>
<script type="text/javascript">
</script>

П.П: Нито <a> нито </a> са на кирилица!
 
Validation Output: 5 Errors

1. Warning Line 270, Column 25: cannot generate system identifier for general entity "B".

VA - SJ Presents Party R&B Vol.5
Замени & с &


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 (;). 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 (;). If you want to use a literal ampersand in your document you must encode it as "&" (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 æ 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. Error Line 270, Column 25: general entity "B" not defined and no default entity.

VA - SJ Presents Party R&B Vol.5



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. Error Line 270, Column 26: reference to entity "B" for which no system identifier could be generated.

VA - SJ Presents Party R&B Vol.5



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.
4. Info Line 270, Column 24: entity was defined here.

VA - SJ Presents Party R&B Vol.5

5. Error Line 688, Column 198: end tag for element "A" which is not open.

…flirt4e_names[id] + "' border='0'></a><br>" +



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
6. Error Line 689, Column 113: end tag for element "A" which is not open.

…йтът за запознанства'>Запознанства</a><br>" +



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
7. Error Line 690, Column 112: end tag for element "A" which is not open.

…айтът за запознанства'>flirt4e.com</a>";



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.

2 препоръки:
>-къде ползваш символа & - слагаи &
например в ликове (това е напълно валидно и работещо)
Код:
<a href="show.php?pageid=13&order=asc&search=">R&B</a>
Това ще изглежда така:

>-Пиши двойните кавички (") като задаваш атрибути на тагове, никога единични (')

Ако трябва си промени скриптовете да ползват динични вместо двойни или ексейпвай двойните, но никога не слагаи единичните кавички за стойностите на атрибутите в HTMLa
НЕ каза:
<a href='address.web'>address</a>
ДА каза:
<a href="address.web">address</a>
PHP пример каза:
<?php echo "<a href="address.web" style="color: red;">address</a>"; ?>

А това дето го показва за суперхостинга в валидатора е супер странно, аз за да го валидирам трябваше да копирам сорса на страницата и да го пейстна в http://validator.w3.org/#validate_by_input
 
Аз това за & и & беше оправено, но просто сайта ще се мести на др машина или на VPS (и аз незнам чак ...) и затова един от екипа е качил др файл, който не е валидиран. Въпроса ми е конкретно в/у скрипта на flirt4e-то :roll: Другите грешки са лесни за fix-ване :roll:
 
DJCharge каза:
Къде го тоя скрипт на флиртче :shock: ?
Аз виждам само 2 грешки и те са ...
</strong></span> - не са отворени.
Това и пробвай да го сложиш в оттделен див... при мен стана :)
 
Код:
<script type="text/javascript"> 
</script>

След доста мислене :-) стана на

Код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 

Back
Горе