- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Aug 2011 21:46:28 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv2436 Modified Files: common-dom-interfaces.html number-state.html spec.html Log Message: Don't bother protecting structured cloning from a getter with infinite regression, since we can't protect it from a non-terminating getter anyway. Reverts part of r6185. (whatwg r6434) [updated by splitter] Index: common-dom-interfaces.html =================================================================== RCS file: /sources/public/html5/spec/common-dom-interfaces.html,v retrieving revision 1.67 retrieving revision 1.68 diff -u -d -r1.67 -r1.68 --- common-dom-interfaces.html 11 Aug 2011 18:46:26 -0000 1.67 +++ common-dom-interfaces.html 12 Aug 2011 21:46:26 -0000 1.68 @@ -1018,18 +1018,14 @@ <li><p>Let <var title="">output</var> be the value resulting from calling the <a href="#internal-structured-cloning-algorithm">internal structured cloning algorithm</a> with <var title="">input</var> as the "<var title="">input</var>" - argument, <var title="">memory</var> as the "<var title="">memory</var>" argument, and zero as the "<var title="">depth</var>" argument.</p></li> + argument, and <var title="">memory</var> as the "<var title="">memory</var>" argument.</p></li> <li><p>Return <var title="">output</var>.</p></li> </ol><p>The <dfn id="internal-structured-cloning-algorithm">internal structured cloning algorithm</dfn> is always - called with three arguments, <var title="">input</var>, <var title="">memory</var>, and <var title="">depth</var>, and its - behavior is as follows:</p> - - <ol><li><p>If <var title="">depth</var> is greater than 1, return null - and abort these steps.</p></li> + called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior is as follows:</p> - <li><p>If <var title="">input</var> is the source object of a pair + <ol><li><p>If <var title="">input</var> is the source object of a pair of objects in <var title="">memory</var>, then return the destination object in that pair of objects and abort these steps.</p></li> @@ -1125,11 +1121,8 @@ object, then, for each enumerable property in <var title="">input</var>, add a new property to <var title="">output</var> having the same name, and having a value created from invoking the <a href="#internal-structured-cloning-algorithm">internal structured cloning algorithm</a> recursively with the value of the property as the - "<var title="">input</var>" argument, <var title="">memory</var> - as the "<var title="">memory</var>" argument, and <span title=""><var title="">depth</var>+<var title="">newDepth</var></span> as the "<var title="">depth</var>" - argument, where <var title="">newDepth</var> is zero except if - obtaining the value of the property involved executing script, in - which case it is one (1). The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must + "<var title="">input</var>" argument and <var title="">memory</var> as the "<var title="">memory</var>" + argument. The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must be the same, and any properties that involve running script must be processed in that same order. If obtaining the value of the property involved executing script, and that script threw an Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.1614 retrieving revision 1.1615 diff -u -d -r1.1614 -r1.1615 --- spec.html 12 Aug 2011 20:46:50 -0000 1.1614 +++ spec.html 12 Aug 2011 21:46:26 -0000 1.1615 @@ -349,7 +349,7 @@ <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>, <a href="author/">web developer edition</a>. -This is revision 1.5135. +This is revision 1.5137. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2011 <a href="http://www.w3.org/"><abbr title="World Wide Index: number-state.html =================================================================== RCS file: /sources/public/html5/spec/number-state.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- number-state.html 28 Jul 2011 01:46:28 -0000 1.55 +++ number-state.html 12 Aug 2011 21:46:26 -0000 1.56 @@ -1194,7 +1194,10 @@ or alternatively a button from which the user can submit the form. The element is a <a href="forms.html#concept-button" title="concept-button">button</a>, specifically a <a href="forms.html#concept-submit-button" title="concept-submit-button">submit - button</a>.</p><hr><p>The image is given by the <dfn id="attr-input-src" title="attr-input-src"><code>src</code></dfn> attribute. The <code title="attr-input-src"><a href="#attr-input-src">src</a></code> attribute must be present, and + button</a>.</p><p class="note">The coordinate is sent to the server <a href="association-of-controls-and-forms.html#constructing-the-form-data-set" title="constructing the form data set">during form submission</a> + by sending two entries for the element, derived from the name of the + control but with "<code title="">.x</code>" and "<code title="">.y</code>" appended to the name with the <var title="">x</var> and <var title="">y</var> components of the + coordinate respectively.</p><hr><p>The image is given by the <dfn id="attr-input-src" title="attr-input-src"><code>src</code></dfn> attribute. The <code title="attr-input-src"><a href="#attr-input-src">src</a></code> attribute must be present, and must contain a <a href="urls.html#valid-non-empty-url-potentially-surrounded-by-spaces">valid non-empty URL potentially surrounded by spaces</a> referencing a non-interactive, optionally animated, image resource that is neither paged nor scripted.</p><div class="impl"> @@ -1378,7 +1381,18 @@ </div><p class="note">Many aspects of this state's behavior are similar to the behavior of the <code><a href="embedded-content-1.html#the-img-element">img</a></code> element. Readers are encouraged to read that section, where many of the same requirements are - described in more detail.</p><h6 id="reset-button-state"><span class="secno">4.10.7.1.21 </span><dfn title="attr-input-type-reset">Reset Button</dfn> state</h6><div class="impl"> + described in more detail.</p><div class="example"> + + <p>Take the following form:</p> + + <pre><form action="process.cgi"> + <input type=image src=map.png name=where> +</form></pre> + + <p>If the user clicked on the image at coordinate (127,40) then the + URL used to submit the form would be "<code title="">process.cgi?where.x=127&where.y=40</code>".</p> + + </div><h6 id="reset-button-state"><span class="secno">4.10.7.1.21 </span><dfn title="attr-input-type-reset">Reset Button</dfn> state</h6><div class="impl"> <p>When an <code><a href="the-input-element.html#the-input-element">input</a></code> element's <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute is in the <a href="#reset-button-state" title="attr-input-type-reset">Reset Button</a> state, the rules in this section apply.</p>
Received on Friday, 12 August 2011 21:46:35 UTC