herbalizer: Mozilla 1.0.0 zeigt noframe Bereich falsch an

Beitrag lesen

Hi!

Nope! http://www.w3.org/TR/html4/loose.dtd und http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd erlauben noframes und definieren es als Blockelement.

Aber nur im FRAMESET-Kontext.

Sieht das wie Framesetcontext aus?

XHTML1.0 Transitional:

<!--================== Block level elements ==============================-->

<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
<!ENTITY % lists "ul | ol | dl | menu | dir">
<!ENTITY % blocktext "pre | hr | blockquote | address | center | noframes">

<!ENTITY % block
    "p | %heading; | div | %lists; | %blocktext; | isindex |fieldset | table">

<!ENTITY % Block "(%block; | form | %misc;)*">

<!-- %Flow; mixes Block and Inline and is used for list items etc. -->
<!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">

Framesets werden in dieser DTD überhaupt nicht definiert (im Gegensatz zu HTML4.0) Ob es sinnvoll ist noframes ohne Frameset einzusetzen ist natürlich 'ne andere Sache, der Einsatz würde höchtens bei iframes Sinn machen. Aber eigentlich auch da nicht, da iframe ja selbst andere Elemente enthalten kann.

Ausserdem ist es vom W3C tatsächlich auch so vorgesehen, das auch in Dokumenten, welche Quelle eines Frames sind, selbst aber keine Frames enhalten, noframes eingesetzt werden kann:

NOFRAMES may be used, for example, in a document that is the source of a frame and that uses the transitional DTD. This allows authors to explain the document's purpose in cases when it is viewed out of the frameset or with a user agent that doesn't support frames. [http://www.w3.org/TR/html4/present/frames.html#edef-NOFRAMES]

Gruß Herbalizer

Gruß Herbalizer