Skip to content
Permalink
Browse files

[giow] (1) Updates for r8297, fixing <option> to treat 'dirtiness' co…

…rrectly, and r8336, fixing 'error' events sent to MessagePort objects to not race messages sent from those ports (or, worse, the event that the port is delivered on...).

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24057
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@8341 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Dec 11, 2013
1 parent 9876ca7 commit 1681980aea78048589884d3fc6b5f4936534f3b3
Showing with 16 additions and 16 deletions.
  1. +5 −5 complete.html
  2. +5 −5 index
  3. +6 −6 source
created, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true if
the element has a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute. Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is
added, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is true, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true.
added, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is false, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true.
Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is
<em>removed</em>, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is true, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to false.</p>
<em>removed</em>, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is false, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to false.</p>

<p class=note>The <code title=dom-option><a href=#dom-option>Option()</a></code> constructor, when called with three
or fewer arguments, overrides the initial state of the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state to always be false even if the third
is not entangled), or if <var title="">target port</var> is suffering the same fate as <var title="">source port</var> (e.g. if both ports are in the same host process), then abort these
steps.</li>

<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error>error</code> at <var title="">target port</var>. The <a href=#concept-task title=concept-task>task</a> must be associated with the <a href=#responsible-document>responsible document</a>
specified by <var title="">source port</var>'s <a href=#concept-port-owner title=concept-port-owner>owner</a>,
and must use the <a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</li>
<!--CLEANUP-->
<li><p>Create a <a href=#concept-task title=concept-task>task</a> that <a href=#fire-a-simple-event title="fire a simple event">fires a simple event</a> named <code title=event-error>error</code> at <var title="">target port</var>, and add it to the <a href=#port-message-queue>port message queue</a> of <var title="">target port</var>. The <a href=#concept-task title=concept-task>task</a> must be associated with the <a href=#responsible-document>responsible document</a>
specified by <var title="">source port</var>'s <a href=#concept-port-owner title=concept-port-owner>owner</a>.</li>

<li><p>Disentangle the two ports.</li>

10 index
created, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true if
the element has a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute. Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is
added, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is true, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true.
added, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is false, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to true.
Whenever an
<code><a href=#the-option-element>option</a></code> element's <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is
<em>removed</em>, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is true, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to false.</p>
<em>removed</em>, if its <a href=#concept-option-dirtiness title=concept-option-dirtiness>dirtiness</a> is false, its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set to false.</p>

<p class=note>The <code title=dom-option><a href=#dom-option>Option()</a></code> constructor, when called with three
or fewer arguments, overrides the initial state of the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state to always be false even if the third
is not entangled), or if <var title="">target port</var> is suffering the same fate as <var title="">source port</var> (e.g. if both ports are in the same host process), then abort these
steps.</li>

<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error>error</code> at <var title="">target port</var>. The <a href=#concept-task title=concept-task>task</a> must be associated with the <a href=#responsible-document>responsible document</a>
specified by <var title="">source port</var>'s <a href=#concept-port-owner title=concept-port-owner>owner</a>,
and must use the <a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</li>
<!--CLEANUP-->
<li><p>Create a <a href=#concept-task title=concept-task>task</a> that <a href=#fire-a-simple-event title="fire a simple event">fires a simple event</a> named <code title=event-error>error</code> at <var title="">target port</var>, and add it to the <a href=#port-message-queue>port message queue</a> of <var title="">target port</var>. The <a href=#concept-task title=concept-task>task</a> must be associated with the <a href=#responsible-document>responsible document</a>
specified by <var title="">source port</var>'s <a href=#concept-port-owner title=concept-port-owner>owner</a>.</li>

<li><p>Disentangle the two ports.</li>

12 source
created, its <span data-x="concept-option-selectedness">selectedness</span> must be set to true if
the element has a <code data-x="attr-option-selected">selected</code> attribute. Whenever an
<code>option</code> element's <code data-x="attr-option-selected">selected</code> attribute is
added, if its <span data-x="concept-option-dirtiness">dirtiness</span> is true, its <span data-x="concept-option-selectedness">selectedness</span> must be set to true.
added, if its <span data-x="concept-option-dirtiness">dirtiness</span> is false, its <span data-x="concept-option-selectedness">selectedness</span> must be set to true.
Whenever an
<code>option</code> element's <code data-x="attr-option-selected">selected</code> attribute is
<em>removed</em>, if its <span data-x="concept-option-dirtiness">dirtiness</span> is true, its <span data-x="concept-option-selectedness">selectedness</span> must be set to false.</p>
<em>removed</em>, if its <span data-x="concept-option-dirtiness">dirtiness</span> is false, its <span data-x="concept-option-selectedness">selectedness</span> must be set to false.</p>

<p class="note">The <code data-x="dom-option">Option()</code> constructor, when called with three
or fewer arguments, overrides the initial state of the <span
data-x="">source port</var> (e.g. if both ports are in the same host process), then abort these
steps.</p></li>

<li><p><span>Queue a task</span> to <span>fire a simple event</span> named <code
data-x="event-error">error</code> at <var data-x="">target port</var>. The <span
<!--CLEANUP-->
<li><p>Create a <span data-x="concept-task">task</span> that <span data-x="fire a simple event">fires a simple event</span> named <code
data-x="event-error">error</code> at <var data-x="">target port</var>, and add it to the <span>port message queue</span> of <var data-x="">target port</var>. The <span
data-x="concept-task">task</span> must be associated with the <span>responsible document</span>
specified by <var data-x="">source port</var>'s <span data-x="concept-port-owner">owner</span>,
and must use the <span>DOM manipulation task source</span>.</p></li>
specified by <var data-x="">source port</var>'s <span data-x="concept-port-owner">owner</span>.</p></li>

<li><p>Disentangle the two ports.</p></li>

0 comments on commit 1681980

Please sign in to comment.
You can’t perform that action at this time.