



























@@ -9,6 +9,11 @@ Translation: ja https://triple-underscore.github.io/XHR-ja.html
99Translate IDs: enumdef-xmlhttprequestresponsetype xmlhttprequestresponsetype,dictdef-progresseventinit progresseventinit,typedefdef-formdataentryvalue formdataentryvalue
1010</pre>
111112+<!-- Temporary: https://github.com/w3c/webdriver-bidi/issues/358 -->
13+<pre class=link-defaults>
14+spec:webdriver-bidi; type:dfn; text:event
15+</pre>
16+1217<pre class=anchors>
1318urlPrefix: https://w3c.github.io/DOM-Parsing/; spec: dom-parsing
1419 type: dfn; text: fragment serializing algorithm; url: dfn-fragment-serializing-algorithm
@@ -1609,7 +1614,7 @@ typedef (File or USVString) FormDataEntryValue;
1609161416101615[Exposed=(Window,Worker)]
16111616interface FormData {
1612- constructor(optional HTMLFormElement form);
1617+ constructor(optional HTMLFormElement form, optional HTMLElement? submitter = null);
1613161816141619 undefined append(USVString name, USVString value);
16151620 undefined append(USVString name, Blob blobValue, optional USVString filename);
@@ -1635,16 +1640,27 @@ interface FormData {
16351640moved to the HTML Standard. [[HTML]]
1636164116371642<p>The
1638-<dfn id=dom-formdata constructor for=FormData lt="FormData(form)"><code>new FormData(<var>form</var>)</code></dfn>
1643+<dfn id=dom-formdata constructor for=FormData lt="FormData(form)"><code>new FormData(<var>form</var>, <var>submitter</var>)</code></dfn>
16391644constructor steps are:
1640164516411646<ol>
16421647<li>
16431648<p>If <var>form</var> is given, then:
1644164916451650<ol>
1651+<li>
1652+<p>If <var>submitter</var> is non-null, then:
1653+1654+<ol>
1655+<li><p>If <var>submitter</var> is not a <a>submit button</a>, then <a>throw</a> a
1656+{{TypeError}}.
1657+1658+<li><p>If <var>submitter</var>'s <a>form owner</a> is not <var>form</var>, then <a>throw</a> a
1659+ "{{NotFoundError!!exception}}" {{DOMException}}.
1660+</ol>
1661+16461662<li><p>Let <var>list</var> be the result of <a>constructing the entry list</a> for
1647-<var>form</var>.
1663+<var>form</var> and <var>submitter</var>.
1648166416491665<li><p>If <var>list</var> is null, then <a>throw</a> an "{{InvalidStateError!!exception}}"
16501666{{DOMException}}.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。