Skip to content

Commit

Permalink
Setting flag directly after constructing element
Browse files Browse the repository at this point in the history
  • Loading branch information
andypaicu committed Dec 12, 2018
1 parent 6d147a5 commit 654efb4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -103061,12 +103061,12 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
is created, its name, public identifier, and system identifier must be marked as missing (which is
a distinct state from the empty string), and the <i data-x="force-quirks flag">force-quirks flag</i>
must be set to <i>off</i> (its other state is <i>on</i>). Start and end tag tokens have a tag name,
a <dfn data-x="self-closing flag">self-closing flag</dfn>, a
<dfn data-x="duplicate attribute flag">duplicate attribute flag</dfn> and a list of attributes,
each of which has a name and a value. When a start or end tag token is created, its
<i data-x="self-closing flag">self-closing flag</i> must be unset (its other state is that it be set),
its <i data-x="duplicate attribute flag">duplicate attribute flag</i> must be unset (its other state
is that it be set), and its attributes list must be empty. Comment and character tokens have data.</p>
a <dfn data-x="self-closing flag">self-closing flag</dfn>, a <dfn data-x="duplicate attribute flag">
duplicate attribute flag</dfn>, and a list of attributes, each of which has a name and a value.
When a start or end tag token is created, its <i data-x="self-closing flag">self-closing flag</i>
must be unset (its other state is that it be set), its <i data-x="duplicate attribute flag">
duplicate attribute flag</i> must be unset (its other state is that it be set), and its attributes
list must be empty. Comment and character tokens have data.</p>

<p>When a token is emitted, it must immediately be handled by the <span>tree construction</span>
stage. The tree construction stage can affect the state of the tokenization stage, and can insert
Expand Down Expand Up @@ -104057,8 +104057,8 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
appropriate), the complete attribute's name must be compared to the other attributes on the same
token; if there is already an attribute on the token with the exact same name, then this is a
<span data-x="parse-error-duplicate-attribute">duplicate-attribute</span> <span>parse error</span>,
the new attribute must be removed from the token and the token's
<i data-x="duplicate attribute flag">duplicate attribute flag</i> must be set</p>
the new attribute must be removed from the token and the token's <i data-x="duplicate attribute
flag">duplicate attribute flag</i> must be set</p>.

<p class="note">If an attribute is so removed from a token, it, and the value that gets associated
with it, if any, are never subsequently used by the parser, and are therefore effectively
Expand Down Expand Up @@ -105740,10 +105740,8 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<li>
<p>Let <var>element</var> be the result of <span data-x="create an element">creating an
element</span> given <var>document</var>, <var>localName</var>, <var>given
namespace</var>, null, <var>is</var>, and the
<span data-x="duplicate attribute flag">duplicate attribute flag</span> of the token.
If <var>will execute script</var> is true, set the
<var>synchronous custom elements flag</var>; otherwise, leave it unset.
namespace</var>, null, <var>is</var>. If <var>will execute script</var> is true,
set the <var>synchronous custom elements flag</var>; otherwise, leave it unset.

<p class="note">This will cause <span data-x="custom element constructor">custom element
constructors</span> to run, if <var>will execute script</var> is true. However, since we
Expand All @@ -105752,6 +105750,12 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
data-x="dom-document-open">the document to be blown away</span>.</p>
</li>

<li>
If the <span data-x="duplicate attribute flag">duplicate attribute flag</span> of the token
is set, set <var>element</var>'s <span data-x="concept-element-duplicate-attribute-present">
duplicate attribute present</span> to true.
</li>

<li>
<p><span data-x="concept-element-attributes-append">Append</span> each attribute in the given
token to <var>element</var>.</p>
Expand Down

0 comments on commit 654efb4

Please sign in to comment.