HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2536WebIDL: Put in the anonymous [IndexGetter], [NameCreator], etc, operations.2008-12-16 22:52
@@ -5616,49 +5616,43 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
 
   </dl>
 
 
 
   <h4>DOMStringMap</h4>
 
   <p>The <code>DOMStringMap</code> interface represents a set of
   name-value pairs. When a <code>DOMStringMap</code> object is
   instanced, it is associated with three algorithms, one for getting
-  values from names, one for setting names to certain values, and one
-  for deleting names.</p>
+  getting the list of name-value pairs, one for setting names to
+  certain values, and one for deleting names.</p>
 
-  <p class="XXX">The names of the methods on this interface are
-  temporary and will be fixed when the Web IDL / "Language Bindings
-  for DOM Specifications" spec is ready to handle this case.</p>
+  <pre class="idl">[NameCreator, NameDeleter, NameGetter, NameSetter]
+interface <dfn>DOMStringMap</dfn> {};</pre>
 
-  <pre class="idl">interface <dfn>DOMStringMap</dfn> {
-  [NameGetter] DOMString <span title="dom-stringmap-XXX1">XXX1</span>(in DOMString name); <!-- XXX DOMB -->
-  [NameSetter] void <span title="dom-stringmap-XXX2">XXX2</span>(in DOMString name, in DOMString value); <!-- XXX DOMB -->
-  [XXX] boolean <span title="dom-stringmap-XXX3">XXX3</span>(in DOMString name); <!-- XXX DOMB -->
-};</pre>
+  <p>The <span>names of the supported named properties</span> at any
+  instant are the names obtained from the algorithm for getting the
+  list of name-value pairs at that instant.</p>
 
-  <p>The <dfn title="dom-stringmap-XXX1"><code>XXX1(<var
-  title="">name</var>)</code></dfn> method must call the algorithm for
-  getting values from names, passing <var title="">name</var> as the
-  name, and must return the corresponding value, or null if <var
-  title="">name</var> has no corresponding value.</p>
+  <p>The value of a property with a name <var title="">name</var> at
+  any instant is the value of the name-value pair with name <var
+  title="">name</var> in the list returned from the algorithm for
+  getting the list of name-value pairs at that instant.</p>
 
-  <p>The <dfn title="dom-stringmap-XXX2"><code>XXX2(<var
-  title="">name</var>, <var title="">value</var>)</code></dfn> method
-  must call the algorithm for setting names to certain values, passing
-  <var title="">name</var> as the name and <var title="">value</var>
-  as the value.</p>
+  <p>The behavior for creating a named property and the behavior for
+  setting a named property are both to invoke the algorithm for
+  setting names to certain values, passing <var title="">name</var> as
+  the name and <var title="">value</var> as the value.</p>
 
-  <p>The <dfn title="dom-stringmap-XXX3"><code>XXX3(<var
-  title="">name</var>)</code></dfn> method must call the algorithm for
-  deleting names, passing <var title="">name</var> as the name, and
-  must return true.</p>
+  <p>The behavior for deleting a named property is to invoke the
+  algorithm for deleting names, passing <var title="">name</var> as
+  the name.</p>
 
 
   <h4>DOM feature strings</h4>
 
   <p>DOM3 Core defines mechanisms for checking for interface support,
   and for obtaining implementations of interfaces, using <a
   href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMFeatures">feature
   strings</a>. <a href="#refsDOM3CORE">[DOM3CORE]</a></p>
 
   <p>A DOM application can use the <dfn
@@ -6926,52 +6920,51 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
 
   <p>Every <span title="HTML elements">HTML element</span> may have
   any number of <span title="custom data attribute">custom data
   attributes</span> specified, with any value.</p>
 
   <p>The <dfn title="dom-dataset"><code>dataset</code></dfn> DOM
   attribute provides convenient accessors for all the <code
   title="attr-data-*">data-*</code> attributes on an element.  On
   getting, the <code title="dom-dataset">dataset</code> DOM attribute
   must return a <code>DOMStringMap</code> object, associated with the
-  following three algorithms, which expose these attributes on their
+  following algorithms, which expose these attributes on their
   element:</p>
 
   <dl>
 
-   <dt>The algorithm for getting values from names</dt>
+   <dt>The algorithm for getting the list of name-value pairs</dt>
 
    <dd>
     <ol>
 
-     <li>Let <var title="">name</var> be the concatenation of the
-     string <code title="">data-</code> and the name passed to the
-     algorithm, <span>converted to lowercase</span>.</li>
+     <li>Let <var title="">list</var> be an empty list of name-value pairs.</li>
 
-     <li>If the element does not have an attribute with the name <var
-     title="">name</var>, then the name has no corresponding value,
-     abort.</li>
+     <li>For each content attribute on the element whose first five
+     characters are the string "<code title="">data-</code>", add a
+     name-value pair to <var title="">list</var> whose name is the
+     attribute's name with the first five character removed and whose
+     value is the attribute's value.</li>
 
-     <li>Otherwise, return the value of the attribute with the name
-     <var title="">name</var>.</li>
+     <li>Return <var title="">list</var>.</li>
 
     </ol>
    </dd>
 
    <dt>The algorithm for setting names to certain values</dt>
 
    <dd>
     <ol>
 
      <li>Let <var title="">name</var> be the concatenation of the
      string <code title="">data-</code> and the name passed to the
-     algorithm, <span>converted to lowercase</span>.</li>
+     algorithm.</li>
 
      <li>Let <var title="">value</var> be the value passed to the
      algorithm.</li>
 
      <li>Set the value of the attribute with the name <var
      title="">name</var>, to the value <var title="">value</var>,
      replacing any previous value if the attribute already existed. If
      <code title="">setAttribute()</code> would have raised an
      exception when setting an attribute with the name <var
      title="">name</var>, then this must raise the same
@@ -6980,21 +6973,21 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
     </ol>
    </dd>
 
    <dt>The algorithm for deleting names</dt>
 
    <dd>
     <ol>
 
      <li>Let <var title="">name</var> be the concatenation of the
      string <code title="">data-</code> and the name passed to the
-     algorithm, <span>converted to lowercase</span>.</li>
+     algorithm.</li>
 
      <li>Remove the attribute with the name <var title="">name</var>,
      if such an attribute exists. Do nothing otherwise.</li>
 
     </ol>
    </dd>
 
   </dl>
 
   <div class="example">
@@ -20849,24 +20842,23 @@ interface <dfn>CanvasPattern</dfn> {
 interface <dfn>TextMetrics</dfn> {
   readonly attribute float <span title="dom-textmetrics-width">width</span>;
 };
 
 interface <dfn>ImageData</dfn> {
   readonly attribute unsigned long <span title="dom-imagedata-width">width</span>;
   readonly attribute unsigned long <span title="dom-imagedata-height">height</span>;
   readonly attribute <span>CanvasPixelArray</span> <span title="dom-imagedata-data">data</span>;
 };
 
+[IndexGetter, IndexSetter]
 interface <dfn>CanvasPixelArray</dfn> {
   readonly attribute unsigned long <span title="dom-canvaspixelarray-length">length</span>;
-  [IndexGetter] <span>octet</span> <span title="dom-canvaspixelarray-XXX5">XXX5</span>(in unsigned long index); <!-- XXX DOMB -->
-  [IndexSetter] void <span title="dom-canvaspixelarray-XXX6">XXX6</span>(in unsigned long index, in octet value); <!-- XXX DOMB -->
 };</pre>
 
   <p>The <dfn title="dom-context-2d-canvas"><code>canvas</code></dfn>
   attribute must return the <code>canvas</code> element that the
   context paints on.</p>
 
 
   <p>Unless otherwise stated, for the 2D context interface, any method
   call with a numeric argument whose value is infinite or a NaN value
   must be ignored.</p>
@@ -22724,43 +22716,43 @@ XXXDVT (also check for '- -' bits in the part above) -->
   array must be in the range 0..255, representing the 8 bit value for
   that component. The components must be assigned consecutive indices
   starting with 0 for the top left pixel's red component.</p>
 
   <p>The <code>CanvasPixelArray</code> object thus represents <var
   title="">h</var>&times;<var title="">w</var>&times;4 integers. The
   <dfn title="dom-canvaspixelarray-length"><code>length</code></dfn>
   attribute of a <code>CanvasPixelArray</code> object must return this
   number.</p>
 
-  <p>The <dfn title="dom-canvaspixelarray-XXX5"><code>XXX5(<var
-  title="">index</var>)</code></dfn> method must return the value of
-  the <var title="">index</var>th component in the array.</p>
-
-  <p>The <dfn title="dom-canvaspixelarray-XXX6"><code>XXX6(<var
-  title="">index</var>, <var title="">value</var>)</code></dfn> method
-  must set the value of the <var title="">index</var>th component in
-  the array to <var title="">value</var>. JS <code>undefined</code>
-  values must be converted to zero.  Other values must first be
-  converted to numbers using JavaScript's ToNumber algorithm, and if
-  the result is a NaN value, then the value be must converted to
-  zero. If the result is less than 0, it must be clamped to zero. If
-  the result is more than 255, it must be clamped to 255. If the
-  number is not an integer, it should be rounded to the nearest
-  integer using the IEEE 754r <i>convertToIntegerTiesToEven</i>
-  rounding mode.  <a href="#refsECMA262">[ECMA262]</a> <a
+  <p>The object's <span>indices of the supported indexed
+  properties</span> are the numbers in the range 0 .. <span><var
+  title="">h</var>&times;<var title="">w</var>&times;4-1</span>.</p>
+
+  <p>The value of the <span>corresponding indexed property</span> <var
+  title="">index</var> whenever an indexed property is retrieved is
+  the value of the <var title="">index</var>th component in the
+  array.</p>
+
+  <p>The behavior for setting an indexed property <var
+  title="">index</var> to a value <var title="">value</var> is to set
+  the value of the <var title="">index</var>th component in the array
+  to <var title="">value</var>. JS <code>undefined</code> values must
+  be converted to zero. Other values must first be converted to
+  numbers using JavaScript's ToNumber algorithm, and if the result is
+  a NaN value, then the value be must converted to zero. If the result
+  is less than 0, it must be clamped to zero. If the result is more
+  than 255, it must be clamped to 255. If the number is not an
+  integer, it should be rounded to the nearest integer using the IEEE
+  754r <i>convertToIntegerTiesToEven</i> rounding mode.  <a
+  href="#refsECMA262">[ECMA262]</a> <a
   href="#refsIEEE754r">[IEEE754R]</a></p>
 
-  <p class="XXX">The above is not intended to cause these
-  methods to get any unusual behaviour, it's just supposed to be the
-  normal behaviour for passing values to a method expecting an <code
-  title="">octet</code> type.</p>
-
   <p class="note">The width and height (<var title="">w</var> and <var
   title="">h</var>) might be different from the <var title="">sw</var>
   and <var title="">sh</var> arguments to the above methods, e.g. if
   the canvas is backed by a high-resolution bitmap, or if the <var
   title="">sw</var> and <var title="">sh</var> arguments are
   negative.</p>
 
   <p>The <dfn
   title="dom-context-2d-putImageData"><code>putImageData(<var
   title="">imagedata</var>, <var title="">dx</var>, <var
@@ -25968,33 +25960,32 @@ function AddCloud(data, x, y) { ... }</pre>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-form-accept-charset">accept-charset</code></dd>
    <dd><code title="attr-fs-action">action</code></dd>
    <dd><code title="attr-fs-enctype">enctype</code></dd>
    <dd><code title="attr-fs-method">method</code></dd>
    <dd><code title="attr-form-name">name</code></dd>
    <dd><code title="attr-fs-novalidate">novalidate</code></dd>
    <dd><code title="attr-fs-target">target</code></dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class="idl">interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
+<pre class="idl">[NameGetter, IndexGetter]
+interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-form-accept-charset">accept-charset</span>;
            attribute DOMString <span title="dom-fs-action">action</span>;
            attribute DOMString <span title="dom-fs-enctype">enctype</span>;
            attribute DOMString <span title="dom-fs-method">method</span>;
            attribute DOMString <span title="dom-form-name">name</span>;
            attribute boolean <span title="dom-fs-novalidate">novalidate</span>;
            attribute DOMString <span title="dom-fs-target">target</span>;
 
   readonly attribute <span>HTMLFormControlsCollection</span> <span title="dom-form-elements">elements</span>;
   readonly attribute long <span title="dom-form-length">length</span>;
-  [IndexGetter] <span>HTMLElement</span> <span title="dom-form-XXX7">XXX7</span>(in unsigned long index);
-  [NameGetter] Object <span title="dom-form-XXX8">XXX8</span>(in DOMString name);
 
   void <span title="dom-form-submit">submit</span>();
   void <span title="dom-form-reset">reset</span>();
   boolean <span title="dom-form-checkValidity">checkValidity</span>();
 
   void <span title="dom-form-dispatchFormInput">dispatchFormInput</span>();
   void <span title="dom-form-dispatchFormChange">dispatchFormChange</span>();
 };</pre>
    </dd> 
   </dl>
@@ -26036,40 +26027,42 @@ function AddCloud(data, x, y) { ... }</pre>
   DOM attribute must return an <code>HTMLFormControlsCollection</code>
   rooted at the <code>Document</code> node, whose filter matches <span
   title="category-listed">listed</span> elements whose <span>form
   owner</span> is the <code>form</code> element, with the exception of
   <code>input</code> elements whose <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-image">Image Button</span> state, which must,
   for historical reasons, be excluded from this particular
   collection.</p>
 
-  <p>The <dfn title="dom-form-length"><code>length</code></dfn> DOM
-  attribute must return the number of nodes <span title="represented
-  by the collection">represented</span> by the <code
-  title="dom-form-elements">elements</code> collection.</p>
-
-  <!-- XXX7 and XXX8: in IE these are called item and namedItem, but
-  they have deep magic involved to resolve name clashes with form
-  controls of those names. In other browsers, they are anonymous. -->
-
-  <p>The <dfn title="dom-form-XXX7"><code>XXX7()</code></dfn> method
-  must return the value that would be returned by the <code
-  title="dom-HTMLFormControlsCollection-item">item()</code> method of
-  the <code title="dom-form-elements">elements</code> collection if it
-  was invoked with the same arguments.</p>
-
-  <p>The <dfn title="dom-form-XXX8"><code>XXX8()</code></dfn> method
-  must return the value that would be returned by the <code
-  title="dom-HTMLFormControlsCollection-namedItem">namedItem()</code>
-  method of the <code title="dom-form-elements">elements</code>
-  collection if it was invoked with the same arguments.</p>
+  <p>The <code title="dom-form-elements">elements</code> collection is
+  also mirrored on the <code>HTMLFormElement</code> object. The <dfn
+  title="dom-form-length"><code>length</code></dfn> DOM attribute must
+  return the number of nodes <span title="represented by the
+  collection">represented</span> by the <code
+  title="dom-form-elements">elements</code> collection. The
+  <span>indices of the supported indexed properties</span> at any
+  instant are the indicies supported by the object returned by the
+  <code title="dom-form-elements">elements</code> attribute at that
+  instant. The value of the <span>corresponding indexed
+  property</span> whenever an indexed property is retrieved is the
+  value of the <span>corresponding indexed property</span> on the
+  object returned by the <code
+  title="dom-form-elements">elements</code> attribute. The <span>names
+  of the supported named properties</span> at any instant are the
+  names supported by the object returned by the <code
+  title="dom-form-elements">elements</code> attribute at that
+  instant. The value of a property with a name <var
+  title="">name</var> at any instant is the property with the same
+  name on the object returned by the <code
+  title="dom-form-elements">elements</code> attribute at the same
+  instant.</p>
 
   <p>The <dfn title="dom-form-submit"><code>submit()</code></dfn>
   method, when invoked, must <span
   title="concept-form-submit">submit</span> the <code>form</code>
   element from the <code>form</code> element itself.</p>
 
   <p>The <dfn title="dom-form-reset"><code>reset()</code></dfn>
   method, when invoked, must <span
   title="concept-form-reset">reset</span> the <code>form</code>
   element.</p>
@@ -30883,33 +30876,33 @@ You cannot complete this form until the field is correct.</samp></pre>
    <dd>Zero or more <code>option</code> or <code>optgroup</code> elements.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-fe-autofocus">autofocus</code></dd>
    <dd><code title="attr-fe-disabled">disabled</code></dd>
    <dd><code title="attr-fae-form">form</code></dd>
    <dd><code title="attr-select-multiple">multiple</code></dd>
    <dd><code title="attr-fe-name">name</code></dd>
    <dd><code title="attr-select-size">size</code></dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class="idl">interface <dfn>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
+<pre class="idl">[IndexGetter]
+interface <dfn>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
            attribute boolean <span title="dom-fe-autofocus">autofocus</span>;
            attribute boolean <span title="dom-fe-disabled">disabled</span>;
   readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
            attribute boolean <span title="dom-select-multiple">multiple</span>;
            attribute DOMString <span title="dom-fe-name">name</span>;
            attribute boolean <span title="dom-select-size">size</span>;
 
   readonly attribute DOMString <span title="dom-select-type">type</span>;
 
   readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-options">options</span>;
            attribute unsigned long <span title="dom-select-length">length</span>;
-  [IndexGetter] <span>HTMLElement</span> <span title="dom-select-XXX9">XXX9</span>(in unsigned long index);
   void <span title="dom-select-add">add</span>(in <span>HTMLElement</span> element, in <span>HTMLElement</span> before);
   void <span title="dom-select-add">add</span>(in <span>HTMLElement</span> element, in long before);
   void <span title="dom-select-remove">remove</span>(in long index);
 
   readonly attribute <span>HTMLCollection</span> <span title="dom-select-selectedOptions">selectedOptions</span>;
            attribute long <span title="dom-select-selectedIndex">selectedIndex</span>;
            attribute DOMString <span title="dom-select-value">value</span>;
 
   readonly attribute boolean <span title="dom-cva-willValidate">willValidate</span>;
   readonly attribute <span>ValidityState</span> <span title="dom-cva-validity">validity</span>;
@@ -31084,21 +31077,28 @@ You cannot complete this form until the field is correct.</samp></pre>
   <p>The <dfn title="dom-select-length"><code>length</code></dfn> DOM
   attribute, on getting and setting, must act like the <code
   title="dom-HTMLOptionsCollection-length">length</code> attribute on
   the <code>HTMLOptionsCollection</code> object returned by the <code
   title="dom-select-options">options</code> attribute. Similarly, the
   <dfn title="dom-select-add"><code>add()</code></dfn> and <dfn
   title="dom-select-remove"><code>remove()</code></dfn> methods must
   act like their namesake methods on that same
   <code>HTMLOptionsCollection</code> object.</p>
 
-  <!-- XXX9 is blocked on WebIDL -->
+  <p>The <span>indices of the supported indexed properties</span> at
+  any instant are the indicies supported by the object returned by the
+  <code title="dom-select-options">options</code> attribute at that
+  instant. The value of the <span>corresponding indexed
+  property</span> whenever an indexed property is retrieved is the
+  value of the <span>corresponding indexed property</span> on the
+  object returned by the <code
+  title="dom-select-options">options</code> attribute.</p>
 
   <p>The <dfn
   title="dom-select-selectedOptions"><code>selectedOptions</code></dfn>
   DOM attribute must return an <code>HTMLCollection</code> rooted at
   the <code>select</code> node, whose filter matches the elements in
   the <span title="concept-select-option-list">list of options</span>
   that have their <span
   title="concept-option-selectedness">selectedness</span> set to
   true.</p>
 
@@ -37313,34 +37313,34 @@ explain that only direct children of the <menu> matter
 
 
 
 
   <h3>The default view</h3>
 
   <p>The <code>AbstractView</code> object of <span title="default
   view">default views</span> must also implement the
   <code>Window</code> and <code>EventTarget</code> interfaces.</p>
 
-  <pre class="idl">[NoInterfaceObject] interface <dfn>Window</dfn> {
+  <pre class="idl">[NoInterfaceObject, IndexGetter]
+interface <dfn>Window</dfn> {
   // the current browsing context
   readonly attribute <span>Window</span> <span title="dom-window">window</span>;
   readonly attribute <span>Window</span> <span title="dom-self">self</span>;
            attribute DOMString <span title="dom-name">name</span>;
   [PutForwards=href] readonly attribute <span>Location</span> <span title="dom-document-location">location</span>;
   readonly attribute <span>History</span> <span title="dom-history">history</span>;
   readonly attribute <span>UndoManager</span> <span title="dom-undoManager">undoManager</span>;
   <span>Selection</span> <span title="dom-getSelection">getSelection</span>();
 
   // other browsing contexts
   readonly attribute <span>Window</span> <span title="dom-frames">frames</span>;
   readonly attribute unsigned long <span title="dom-length">length</span>;
-  [IndexGetter] <span>Window</span> <span title="dom-XXX4">XXX4</span>(in unsigned long index); <!-- XXX DOMB -->
   readonly attribute <span>Window</span> <span title="dom-top">top</span>;
   readonly attribute <span>Window</span> <span title="dom-opener">opener</span>;
   readonly attribute <span>Window</span> <span title="dom-parent">parent</span>;
   readonly attribute <span>Element</span> <span title="dom-frameElement">frameElement</span>;
   <span>Window</span> <span title="dom-open">open</span>();
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target, in DOMString features);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target, in DOMString features, in DOMString replace);
 
@@ -37444,21 +37444,22 @@ explain that only direct children of the <menu> matter
    <li>The <code title="dom-location">location</code> object
 
    <li>The <code title="dom-window-postMessage-2">postMessage()</code>
    method with two arguments
 
    <li>The <code title="dom-window-postMessage-3">postMessage()</code>
    method with three arguments
 
    <li>The <code title="dom-frames">frames</code> attribute
 
-   <li>The <code title="dom-XXX4">XXX4</code> method
+   <li>Any <span title="corresponding indexed property">corresponding
+   indexed properties</span>
 
   </ul>
 
   <p>User agents must not allow scripts to override the <code
   title="dom-location">location</code> object's setter.</p>
 
 
 
 
   <h4>APIs for creating and navigating browsing contexts by name</h4>
@@ -37544,26 +37545,33 @@ explain that only direct children of the <menu> matter
 
 
   <h4>Accessing other browsing contexts</h4>
 
   <p>The <dfn title="dom-length"><code>length</code></dfn> DOM
   attribute on the <code>Window</code> interface must return the
   number of <span title="child browsing context">child browsing
   contexts</span> of the <span title="active document">active</span>
   <code>Document</code>.</p>
 
-  <p>The <dfn title="dom-XXX4"><code>XXX4(<var
-  title="">index</var>)</code></dfn> method must return the <var
+  <p>The <span>indices of the supported indexed properties</span> on the <code>Window</code> object at
+  any instant are the numbers in the range 0 .. <var title="">n</var>, where <var title="">n</var> is the
+  number of <span title="child browsing context">child browsing
+  contexts</span> of the <span title="active document">active</span>
+  <code>Document</code>.</p>
+
+  <p>The value of a <span>corresponding indexed property</span> <var
+  title="">index</var> whenever an indexed property on a
+  <code>Window</code> object is retrieved is the <var
   title="">index</var>th <span>child browsing context</span> of the
   <span title="active document">active</span> <code>Document</code>,
   sorted in document order of the elements nesting those browsing
-  contexts.</p> <!-- XXX DOMB -->
+  contexts.</p>
 
 
 
   <h4>Garbage collection and browsing contexts</h4>
 
   <p>A <span>browsing context</span> has a strong reference to each of
   its <code>Document</code>s and <span title="view">views</span>, and
   the user agent itself has a strong reference to its <span
   title="top-level browsing context">top-level browsing
   contexts</span>.</p>
@@ -50584,24 +50592,24 @@ function receiver(e) {
     <span>URL</span> with a <code
     title="url-host-specific">&lt;host-specific&gt;</code> component
     that is neither empty nor a single U+002F SOLIDUS character (/),
     then throw a <code>SYNTAX_ERR</code> exception and abort the
     overall set of steps.</p>
 
    </li>
 
    <li>
 
-    <li><p>Let <var title="">message clone</var> be the result of
+    <p>Let <var title="">message clone</var> be the result of
     obtaining a <span>structured clone</span> of the <var
     title="">message</var> argument. If this throws an exception, then
-    throw that exception and abort these steps.</p></li>
+    throw that exception and abort these steps.</p>
 
    </li>
 
    <li>
 
     <p>Return from the <code
     title="dom-window-postMessage-2">postMessage()</code> method, but
     asynchronously continue running these steps.</p>
 
    </li>

|