Skip to content

Commit d77b1e8

Browse files
committed
Added a duplicate attribute present member to element create call
1 parent 44da679 commit d77b1e8

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

source

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103008,12 +103008,14 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
103008103008
DOCTYPE, start tag, end tag, comment, character, end-of-file. DOCTYPE tokens have a name, a public
103009103009
identifier, a system identifier, and a <dfn><i>force-quirks flag</i></dfn>. When a DOCTYPE token
103010103010
is created, its name, public identifier, and system identifier must be marked as missing (which is
103011-
a distinct state from the empty string), and the <i data-x="force-quirks flag">force-quirks flag</i> must be set to
103012-
<i>off</i> (its other state is <i>on</i>). Start and end tag tokens have a tag name, a <dfn
103013-
data-x="self-closing flag">self-closing flag</dfn>, and a list of attributes, each of which has a
103014-
name and a value. When a start or end tag token is created, its <i data-x="self-closing
103015-
flag">self-closing flag</i> must be unset (its other state is that it be set), and its attributes
103016-
list must be empty. Comment and character tokens have data.</p>
103011+
a distinct state from the empty string), and the <i data-x="force-quirks flag">force-quirks flag</i>
103012+
must be set to <i>off</i> (its other state is <i>on</i>). Start and end tag tokens have a tag name,
103013+
a <dfn data-x="self-closing flag">self-closing flag</dfn>, a
103014+
<dfn data-x="duplicate attribute flag">duplicate attribute flag</dfn> and a list of attributes,
103015+
each of which has a name and a value. When a start or end tag token is created, its
103016+
<i data-x="self-closing flag">self-closing flag</i> must be unset (its other state is that it be set),
103017+
its <i data-x="duplicate attribute flag">duplicate attribute flag</i> must be unset (its other state
103018+
is that it be set), and its attributes list must be empty. Comment and character tokens have data.</p>
103017103019

103018103020
<p>When a token is emitted, it must immediately be handled by the <span>tree construction</span>
103019103021
stage. The tree construction stage can affect the state of the tokenization stage, and can insert
@@ -104003,8 +104005,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
104003104005
<p>When the user agent leaves the attribute name state (and before emitting the tag token, if
104004104006
appropriate), the complete attribute's name must be compared to the other attributes on the same
104005104007
token; if there is already an attribute on the token with the exact same name, then this is a
104006-
<span data-x="parse-error-duplicate-attribute">duplicate-attribute</span> <span>parse error</span>
104007-
and the new attribute must be removed from the token.</p>
104008+
<span data-x="parse-error-duplicate-attribute">duplicate-attribute</span> <span>parse error</span>,
104009+
the new attribute must be removed from the token and the token's
104010+
<i data-x="duplicate attribute flag">duplicate attribute flag</i> must be set</p>
104008104011

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

105692105697
<p class="note">This will cause <span data-x="custom element constructor">custom element
105693105698
constructors</span> to run, if <var>will execute script</var> is true. However, since we

0 commit comments

Comments
 (0)