Axel Richter: Ja, warum ist das denn ned valide!?

Beitrag lesen

Hallo,

Mhm...danke! Nun ists valide.
Ist das eine Änderung von HTML zu XHTML?

Ja. XHTML1-Strict => XHTML1.1 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
...
<!--=================== Block-like Quotes ================================-->

<!ELEMENT blockquote %Block;>
<!ATTLIST blockquote
  %attrs;
  cite        %URI;          #IMPLIED
  >
...
@MudGuard: wo hast Du SCRIPT her?

Dafür HTML4.01-Transitional http://www.w3.org/TR/html4/sgml/loosedtd.html
...
<!--=================== Block-like Quotes ================================-->

<!ELEMENT BLOCKQUOTE - - (%flow;)*     -- long quotation -->
<!ATTLIST BLOCKQUOTE
  %attrs;                              -- %coreattrs, %i18n, %events --
  cite        %URI;          #IMPLIED  -- URI for source document or msg --
  >
...
Es ergibt sich natürlich die Frage, was Du mit Deinem Code bezweckst. Wenn er nur im Browser dargestellt werden soll, warum verwendest Du dann XHTML1.1? Dafür ist HTML4.01 bestens geeignet. Wenn überhaupt XHTML, dann XHTML1.0.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
...
<!--=================== Block-like Quotes ================================-->

<!ELEMENT blockquote %Flow;>
<!ATTLIST blockquote
  %attrs;
  cite        %URI;          #IMPLIED
  >
...

viele Grüße

Axel