Matthias Apsel: Browser fügt Tags hinzu

Beitrag lesen

problematische Seite

Hallo wilmaed,

<p>
<div> a </div>	<div> b </div> <div> c </div>
</p>

Mit Verwunderung habe ich festgestellt, dass Browser well-formed HTML eigenständig verändern. Im Beispiel wird aus <p> ein <p></p> und aus </p> ein <p></p>.

Eine Korrektur ist es nicht, da well-formed .…

Nix „well-formed“. p darf nur phrasing-content enthalten.

<p></p>
<div> a </div>	<div> b </div> <div> c </div>
<p></p>

Bis demnächst
Matthias

--
Rosen sind rot.