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
 
Start new topic
Odpowiedzi
ShadowD
post
Post #2





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

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


Omg nie czaje przecież ona ma doctype... ;p

Ok ale jak daje link do strony:
http://www.swiat--fantasy.xt.pl/

To mam:
Cytat
Conflict between Mime Type and Document Type

The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:

* If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
* You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
* If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.


Rozumiem, że nie da się tego naprawić, ponieważ po naprawie IE będzie pobierał plik zamiast go wyświetlić??

PS Nie liczę podmiany doctype dla IE...

Ten post edytował ShadowD 2.07.2008, 11:57:08
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: 5.10.2025 - 02:18