Skip to content

Commit

Permalink
Added a duplicate attribute present member to element create call
Browse files Browse the repository at this point in the history
  • Loading branch information
andypaicu committed Dec 5, 2018
1 parent 44da679 commit d77b1e8
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -103008,12 +103008,14 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
DOCTYPE, start tag, end tag, comment, character, end-of-file. DOCTYPE tokens have a name, a public
identifier, a system identifier, and a <dfn><i>force-quirks flag</i></dfn>. When a DOCTYPE token
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>, 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), and its attributes
list must be empty. Comment and character tokens have data.</p>
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>

<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 @@ -104003,8 +104005,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<p>When the user agent leaves the attribute name state (and before emitting the tag token, if
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>
and the new attribute must be removed from the token.</p>
<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>

<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 @@ -105686,8 +105689,10 @@ 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, and <var>is</var>. If <var>will execute script</var> is true, set the
<var>synchronous custom elements flag</var>; otherwise, leave it unset.</p>
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.

<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 Down

0 comments on commit d77b1e8

Please sign in to comment.