Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]validator
ShadowD
post
Post #1





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


  1. <?xml version="1.1" encoding="iso-8859-2"?>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  5.  
  6. <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-2" />
  7. <meta http-equiv="Content-Language" content="...,...,..." />
  8. <meta name="Keywords" content="...,...,..." />
  9. <meta name="Robots" content="..." />
  10. <meta name="Author" content="..." />
  11. <meta name="Description" content="..." />
  12.  
  13. <title> TITLE </title>
  14.  
  15. <link rel="stylesheet" type="text/css" href="style.css" />
  16.  
  17. </head>
  18.  
  19. <p> BODY </p>
  20.  
  21. </body>
  22. </html>


Dlaczego po wklejeniu powyszego kodu tu:
http://validator.w3.org/#validate_by_input

Wyżuca błąd z kodowaniem:

Cytat
Character Encoding Override in effect! The detected character encoding "utf-8" has been suppressed and "iso-8859-2" used instead.


Bez zdeklarowanych wartości strunę wykrywa jako utf-8 a po zdeklarowaniu na iso-8859-2 wyrzuca powywszy kod dlaczego?? W ogóle gdzie w tym kodzie jest mowa o utf-8??

Ps I dlaczego po zdeklarowaniu xhtml 1.1 wyrzuca:
Cytat
DOCTYPE Override in effect!

The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.1" 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.

Choć nie zdeklarowaną wykrywa właśnie jako xhtml 1.1 to po deklaracji dzieją się dziwne rzeczy... ;p

Ten post edytował ShadowD 2.07.2008, 11:43:01
Go to the top of the page
+Quote Post

Posty w temacie


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: 15.09.2025 - 11:59