- From: poot <cvsmail@w3.org>
- Date: Wed, 30 Jul 2008 11:27:31 +0900 (JST)
- To: public-html-diffs@w3.org
Cleanup around <img> requirements. Disallow scripts to run in <img> images. (whatwg r1956) src http://people.w3.org/mike/diffs/html5/spec/Overview.1.1147.html#src0 ismap http://people.w3.org/mike/diffs/html5/spec/Overview.1.1147.html#ismap alt http://people.w3.org/mike/diffs/html5/spec/Overview.1.1147.html#alt1 alt http://people.w3.org/mike/diffs/html5/spec/Overview.1.1147.html#alt0 http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1146&r2=1.1147&f=h http://html5.org/tools/web-apps-tracker?from=1955&to=1956 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1146 retrieving revision 1.1147 diff -u -d -r1.1146 -r1.1147 --- Overview.html 30 Jul 2008 02:19:26 -0000 1.1146 +++ Overview.html 30 Jul 2008 02:24:06 -0000 1.1147 @@ -15507,16 +15507,17 @@ href="#img">img</a></code> element's <a href="#fallback">fallback content</a>. - <p><strong>Authoring requirements</strong>: The <code title=attr-img-src><a - href="#src">src</a></code> attribute must be present, and must contain a - <a href="#valid">valid URL</a>. The requirements on the <code - title=attr-img-alt><a href="#alt0">alt</a></code> attribute's value are - described <a href="#alt">in the next section</a>. + <p>The <code title=attr-img-src><a href="#src">src</a></code> attribute + must be present, and must contain a <a href="#valid">valid URL</a>. <p class=big-issue>Should we restrict the URL to pointing to an image? What's an image? Is PDF an image? (Safari supports PDFs in <img> elements.) How about SVG? (Opera supports those). WMFs? XPMs? HTML? + <p>The requirements on the <code title=attr-img-alt><a + href="#alt0">alt</a></code> attribute's value are described <a + href="#alt">in the next section</a>. + <p class=big-issue>There has been some suggestion that the <code title="">longdesc</code> attribute from HTML4, or some other mechanism that is more powerful than <code title="">alt=""</code>, should be @@ -15529,11 +15530,10 @@ <hr> - <p><strong>User agent requirements</strong>: When the <code - title=attr-img-alt><a href="#alt0">alt</a></code> attribute is present and - its value is the empty string, the image supplements the surrounding - content. In such cases, the image may be omitted without affecting the - meaning of the document. + <p>When the <code title=attr-img-alt><a href="#alt0">alt</a></code> + attribute is present and its value is the empty string, the image + supplements the surrounding content. In such cases, the image may be + omitted in the rendering without affecting the meaning of the document. <p>When the <code title=attr-img-alt><a href="#alt0">alt</a></code> attribute is present and its value is not the empty string, the image is a @@ -15558,6 +15558,13 @@ <code title=attr-img-alt><a href="#alt0">alt</a></code> attribute, if any, or nothing, if that attribute is empty or absent. + <p>When the <code title=attr-img-src><a href="#src">src</a></code> + attribute is present, the element represents the image given by that + attribute. + + <p>The contents of <code><a href="#img">img</a></code> elements, if any, + are ignored for the purposes of rendering. + <hr> <p>When an <code><a href="#img">img</a></code> is created with a <code @@ -15597,7 +15604,8 @@ <p class=note>This allows servers to return images with error responses. <p>User agents must not support non-image resources with the <code><a - href="#img">img</a></code> element. + href="#img">img</a></code> element. User agents must not run executable + code (e.g. scripts) embedded in the image resource. <hr> @@ -15620,9 +15628,7 @@ title=attr-hyperlink-href><a href="#href6">href</a></code> attribute. <p>The <code><a href="#img">img</a></code> element supports <a - href="#dimension0">dimension attributes</a>.</p> - <!-- XXX contents of <img> should be ignored for rendering but not - for semantics, e.g. <script>, <input>, etc. --> + href="#dimension0">dimension attributes</a>. <p>The DOM attributes <dfn id=alt1 title=dom-img-alt><code>alt</code></dfn>, <dfn id=src0
Received on Wednesday, 30 July 2008 02:31:03 UTC