@@ -30648,6 +30648,10 @@ interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
3064830648 <span>the <code>embed</code> element setup steps</span> for <var>element</var>, then
3064930649 return.</p></li>
3065030650
30651+ <li><p>If <var>response</var> is a <span>network error</span>, then <span
30652+ data-x="concept-event-fire">fire an event</span> named <code
30653+ data-x="event-load">load</code> at <var>element</var>, and return.</p></li>
30654+
3065130655 <li><p>Let <var>type</var> be the result of determining the <span
3065230656 data-x="concept-embed-type">type of content</span> given <var>element</var> and
3065330657 <var>response</var>.</p></li>
@@ -30753,10 +30757,9 @@ interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
3075330757 </ol>
3075430758 <!-- This algorithm is a monument to bad design. Go legacy! -->
3075530759
30756- <p class="note">It is intentional that the above algorithm allows <var>response</var> to be a
30757- <span>network error</span> or to have a non-<span>ok status</span>. This allows servers to return
30758- data for plugins even with error responses (e.g., HTTP 500 Internal Server Error codes can still
30759- contain plugin data).</p>
30760+ <p class="note">It is intentional that the above algorithm allows <var>response</var> to have a
30761+ non-<span>ok status</span>. This allows servers to return data for plugins even with error
30762+ responses (e.g., HTTP 500 Internal Server Error codes can still contain plugin data).</p>
3076030763
3076130764 <p>To <dfn>display a plugin</dfn> for an <code>embed</code> element <var>element</var>, given a
3076230765 string <var>type</var> and optionally a <span data-x="concept-response">response</span>
0 commit comments