A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Rationale: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
m (→‎Other Pages: weird syntax for external URLs)
(change wording to be clear that <image> isn't a FF/Opera thing. Change plaintext to show its origins more accurately)
Line 11: Line 11:


=== Plaintext ===
=== Plaintext ===
the &lt;plaintext&gt; element was an early IE version of the &lt;pre&gt; element. It is now used in the HTML5 spec as a method of stopping all further html token parsing. It lacks an end tag and just emits the rest of the page as plain text. It throws a parse error upon reaching the end of the document as it is not considered a valid element (and it is missing an end-tag).
the &lt;plaintext&gt; element is a obsolete precursor to the &lt;pre&gt; element.<sup>[1]</sup> It is is now in the HTML5 spec as a method of stopping all further html token parsing. It lacks an end tag and just emits the rest of the page as plain text. It throws a parse error upon reaching the end of the document as it is not considered a valid element (and it is missing an end-tag).


=== Image ===
=== Image ===


&lt;image&gt; element is treated as an alternate (but invalid) name for &lt;img&gt;. This is because some sites (around 0.2%) make this mistake. It is already treated as an image in Firefox 3.5+ and opera 10.20 and possibly earlier.
&lt;image&gt; element is treated as an alternate (but invalid) name for &lt;img&gt;. This is because some sites (around 0.2%) make this mistake. It is already treated as an image by most major browsers.
 
 
== References ==
<small>
<ol>
<li>[http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt]</li>
</ol>
</small>

Revision as of 20:52, 4 May 2010

This document serves a rationale document for various parts of the HTML5 specification. Over time this page will be a complete rationale document.

Other Pages

Specific Elements

Plaintext

the <plaintext> element is a obsolete precursor to the <pre> element.[1] It is is now in the HTML5 spec as a method of stopping all further html token parsing. It lacks an end tag and just emits the rest of the page as plain text. It throws a parse error upon reaching the end of the document as it is not considered a valid element (and it is missing an end-tag).

Image

<image> element is treated as an alternate (but invalid) name for <img>. This is because some sites (around 0.2%) make this mistake. It is already treated as an image by most major browsers.


References

  1. http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt