Skip to content

Commit

Permalink
Editorial: embrace that attributes are objects
Browse files Browse the repository at this point in the history
Closes whatwg#801.
  • Loading branch information
annevk authored and koto committed Dec 12, 2019
1 parent 0038d09 commit a2ab430
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6124,6 +6124,8 @@ its <a for=Element>attribute list</a> <a for=list>is empty</a>.
<a>attribute</a> <var>attribute</var> to <var>value</var>, run these steps:

<ol>
<li><p>Assert: <var>attribute</var>'s <a for=Attr>element</a> is non-null.

<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>attribute</var>'s
<a for=Attr>element</a>, <var>attribute</var>'s <a for=Attr>value</a>, and <var>value</var>.

Expand All @@ -6135,8 +6137,8 @@ its <a for=Element>attribute list</a> <a for=list>is empty</a>.
steps:

<ol>
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>element</var>, null, and
<var>attribute</var>'s <a for=Attr>value</a>.
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>element</var>,
<var>attribute</var>'s <a for=Attr>value</a>, and <var>value</var>.

<li><p><a for=list>Append</a> <var>attribute</var> to <var>element</var>'s
<a for=Element>attribute list</a>.
Expand All @@ -6148,8 +6150,12 @@ steps:
<a>attribute</a> <var>attribute</var>, run these steps:

<ol>
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>attribute</var>'s
<a for=Attr>element</a>, <var>attribute</var>'s <a for=Attr>value</a>, and null.
<li><p>Let <var>element</var> be <var>attribute</var>'s <a for=Attr>element</a>.

<li><p>Assert: <var>element</var> is non-null.

<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>element</var>,
<var>attribute</var>'s <a for=Attr>value</a>, and null.

<li><a for=list>Remove</a> <var>attribute</var> from <var>attribute</var>'s
<a for=Attr>element</a>'s <a for=Element>attribute list</a>.
Expand All @@ -6161,12 +6167,12 @@ steps:
<a>attribute</a> <var>oldAttr</var> with an <a>attribute</a> <var>newAttr</var>, run these steps:

<ol>
<li><p><a>Handle attribute changes</a> for <var>oldAttr</var> with <var>oldAttr</var>'s
<a for=Attr>element</a>, <var>oldAttr</var>'s <a for=Attr>value</a>, and <var>newAttr</var>'s
<a for=Attr>value</a>.
<li><p>Let <var>element</var> be <var>oldAttr</var>'s <a for=Attr>element</a>.

<li><p><a for=list>Replace</a> <var>oldAttr</var> by <var>newAttr</var> in <var>oldAttr</var>'s
<a for=Attr>element</a>'s <a for=Element>attribute list</a>.
<li><p>Assert: <var>element</var> is non-null.

<li><p><a>Handle attribute changes</a> for <var>oldAttr</var> with <var>element</var>,
<var>oldAttr</var>'s <a for=Attr>value</a>, and <var>newAttr</var>'s <a for=Attr>value</a>.

<li><p>Set <var>newAttr</var>'s <a for=Attr>element</a> to <var>oldAttr</var>'s
<a for=Attr>element</a>.
Expand Down

0 comments on commit a2ab430

Please sign in to comment.