Skip to content

Commit 654efb4

Browse files
committed
Setting flag directly after constructing element
1 parent 6d147a5 commit 654efb4

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

source

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103061,12 +103061,12 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
103061103061
is created, its name, public identifier, and system identifier must be marked as missing (which is
103062103062
a distinct state from the empty string), and the <i data-x="force-quirks flag">force-quirks flag</i>
103063103063
must be set to <i>off</i> (its other state is <i>on</i>). Start and end tag tokens have a tag name,
103064-
a <dfn data-x="self-closing flag">self-closing flag</dfn>, a
103065-
<dfn data-x="duplicate attribute flag">duplicate attribute flag</dfn> and a list of attributes,
103066-
each of which has a name and a value. When a start or end tag token is created, its
103067-
<i data-x="self-closing flag">self-closing flag</i> must be unset (its other state is that it be set),
103068-
its <i data-x="duplicate attribute flag">duplicate attribute flag</i> must be unset (its other state
103069-
is that it be set), and its attributes list must be empty. Comment and character tokens have data.</p>
103064+
a <dfn data-x="self-closing flag">self-closing flag</dfn>, a <dfn data-x="duplicate attribute flag">
103065+
duplicate attribute flag</dfn>, and a list of attributes, each of which has a name and a value.
103066+
When a start or end tag token is created, its <i data-x="self-closing flag">self-closing flag</i>
103067+
must be unset (its other state is that it be set), its <i data-x="duplicate attribute flag">
103068+
duplicate attribute flag</i> must be unset (its other state is that it be set), and its attributes
103069+
list must be empty. Comment and character tokens have data.</p>
103070103070

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

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

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

105753+
<li>
105754+
If the <span data-x="duplicate attribute flag">duplicate attribute flag</span> of the token
105755+
is set, set <var>element</var>'s <span data-x="concept-element-duplicate-attribute-present">
105756+
duplicate attribute present</span> to true.
105757+
</li>
105758+
105755105759
<li>
105756105760
<p><span data-x="concept-element-attributes-append">Append</span> each attribute in the given
105757105761
token to <var>element</var>.</p>

0 commit comments

Comments
 (0)