Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xHTML]Poprawność kodu
adrianozo
post
Post #1





Grupa: Zarejestrowani
Postów: 733
Pomógł: 4
Dołączył: 11.11.2009

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


Witam.
Postanowiłem sprawdzić kod xHTML w walidatorze. Wyskoczyły mi 2 błędy tej samej treści tylko w innych linijkach.
Treść błędów:

1.
Kod
Warning DOCTYPE Override in effect!

The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 Transitional" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.


2.
Kod
Info Using Direct Input mode: UTF-8 character encoding assumed

Unlike the "by URI" and "by File Upload" modes, the "Direct Input" mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.

If you notice a discrepancy in detected character encoding between the the ?Direct Input? mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.


Nie za bardzo wiem o co chodzi. Jeśli mógłby ktoś pomóc byłbym bardzo wdzięczny (IMG:style_emoticons/default/smile.gif)

EDIT:

Ustawiając ENCODING i DOCTYPE na automatyczne wyrzuca tylko błąd nr 2

Kod
Info Using Direct Input mode: UTF-8 character encoding assumed

Unlike the "by URI" and "by File Upload" modes, the "Direct Input" mode of the validator provides validated content in the form of characters pasted or typed in the validators form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.

If you notice a discrepancy in detected character encoding between the the ?Direct Input? mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.


Ten post edytował adrianozo 18.11.2009, 18:42:51
Go to the top of the page
+Quote Post

Posty w temacie
- adrianozo   [xHTML]Poprawność kodu   18.11.2009, 18:42:15
- - Meares   Na początku każdego dokumentu HTML musi byc zamies...   18.11.2009, 19:30:55
- - adrianozo   <!DOCTYPE html PUBLIC "-//W3C//DTD XHT...   18.11.2009, 19:32:07
- - Gryf   z tych sprawdź czy plik na pewno jest kodowany w U...   18.11.2009, 19:33:34
- - adrianozo   Nie rozumiem twojej wypowiedzi Gryf. Mógłbyś jaśni...   18.11.2009, 19:39:04
- - Meares   [HTML] pobierz, plaintext <meta http-equiv=...   18.11.2009, 19:55:09
- - adrianozo   Takie coś [HTML] pobierz, plaintext <meta http...   18.11.2009, 19:56:41
- - Meares   Powinno być "Content-Type", a nie ...   18.11.2009, 19:58:25
- - adrianozo   Poprawione, ale ostrzeżenie dalej wyskakuje   18.11.2009, 20:01:39
- - wiewiorek   Meareas może nie w temacie, ale mógłbyś zacząć uży...   18.11.2009, 20:02:00
- - Meares   Używam, ale nie chciało mi się tego zmieniać. (Lin...   18.11.2009, 20:05:07
- - adrianozo   [HTML] pobierz, plaintext <head><meta htt...   18.11.2009, 20:09:42
- - Meares   Zapomniałem. Na samym początku dokumentu xHTML mu...   18.11.2009, 20:20:09
- - adrianozo   Oto jest od początku [HTML] pobierz, plaintext ...   18.11.2009, 20:21:53
- - potreb   To info które wkleiłeś to nie żaden błąd tylko inf...   18.11.2009, 20:27:07
- - Meares   Kuźwa... Już wiem gdzie jest problem. -.-' Pro...   18.11.2009, 20:30:43
- - adrianozo   Nie mogę przez File Upload ponieważ większość w sk...   18.11.2009, 20:32:52
- - Meares   To wrzuć na serwer i poprzez "via URI".   18.11.2009, 20:39:28
|- - adrianozo   Cytat(Meares @ 18.11.2009, 20:39:28 )...   18.11.2009, 20:42:19
- - l0ud   Wywal tą linię z <?xml na początku, tego ma nie...   18.11.2009, 20:40:18
- - erix   To nie jest błąd, tylko informacja... Nie traktuj ...   18.11.2009, 20:57:17
- - adrianozo   Dzięki... Żyłbym w przekonaniu, że psuje to kod P...   18.11.2009, 21:08:46


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: 22.12.2025 - 16:43