Skip to content

Commit

Permalink
Feedback: remove input names and add iframe content
Browse files Browse the repository at this point in the history
  • Loading branch information
schwering committed Mar 23, 2023
1 parent 8614e30 commit 731fc39
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -55353,11 +55353,11 @@ form.method === input; // => true</code></pre>
following.</p>

<pre><code class="html">&lt;form method=post action="https://pizza.exampe.com/order.cgi">
&lt;label> Name: &lt;input name=name>&lt;/textarea> &lt;/label>
&lt;label> Address: &lt;input name=address>&lt;/textarea> &lt;/label>
&lt;label> City: &lt;input name=city> &lt;/label>
&lt;label> Postal Code: &lt;input name=postal> &lt;/label>
&lt;label> Country: &lt;select name=country>...&lt;/select> &lt;/label>
&lt;label> Name: &lt;input>&lt;/textarea> &lt;/label>
&lt;label> Address: &lt;input>&lt;/textarea> &lt;/label>
&lt;label> City: &lt;input> &lt;/label>
&lt;label> Postal Code: &lt;input> &lt;/label>
&lt;label> Country: &lt;select>...&lt;/select> &lt;/label>
&lt;/form></code></pre>

<p>For example, the user agent could suggest values to fill when the user focuses or types in
Expand Down Expand Up @@ -55389,28 +55389,34 @@ form.method === input; // => true</code></pre>
<p>Consider the following page <code data-x="">https://pizza.example.com/</code>:</p>

<pre><code class="html">&lt;form method=post>
&lt;p> Cardholder name: &lt;input name=name>
&lt;p> Cardholder name: &lt;input>
&lt;p> Credit card number: &lt;iframe src="https://pay.example.com/number.html" allow=shared-autofill>&lt;/iframe>
&lt;p> Expiration date: &lt;input name=expiration-date>
&lt;p> Expiration date: &lt;input>
&lt;p> CVC: &lt;iframe src="https://pay.example.com/cvc.html" allow=shared-autofill>&lt;/iframe>
&lt;/form>
&lt;iframe src="https://ads.example.com/ad.html">&lt;/iframe></code></pre>

<p>Let <code data-x="">number.html</code> and <code data-x="">cvc.html</code> each contain an
<code>input</code>.</p>
<code>input</code>:</p>

<pre><code class="html">&lt;!doctype html>
&lt;html>
&lt;body>
&lt;input>
&lt;/html></code></pre>

<p>Suppose the user starts filling the cardholder name and the user agent offers to fill the
entire credit card form. The <code data-x="">name</code> and
<code data-x="">expiration-date</code> controls are eligible by means of their origin, and the
controls in <code data-x="">number.html</code> and <code data-x="">cvc.html</code> are eligible
due to the <code data-x="shared-autofill-feature">shared-autofill</code> feature.
entire credit card form. The cardholder name and expiration date controls are eligible by means
of their origin, and the controls in <code data-x="">number.html</code> and
<code data-x="">cvc.html</code> are eligible due to the
<code data-x="shared-autofill-feature">shared-autofill</code> feature.
By contrast, none of the controls in <code data-x="">ad.html</code> is eligible because of the
distinct origins and the absent <code data-x="shared-autofill-feature">shared-autofill</code>
feature; this prevents leaking to the ad server.</p>
</div>


<h6>Autofilling form controls: the <code data-x="attr-fe-autocomplete">autocomplete</code> attribute</h6>
<h6>The <code data-x="attr-fe-autocomplete">autocomplete</code> attribute</h6>

<p>The <dfn element-attr for="button,fieldset,input,object,output,select,textarea"><code
data-x="attr-fe-autocomplete">autocomplete</code></dfn> content attribute can be used to hint to
Expand Down

0 comments on commit 731fc39

Please sign in to comment.