Skip to content

Commit 41d828c

Browse files
committed
Integrate proofreading for Chapter 18
1 parent 57829d6 commit 41d828c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

18_forms.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ the currently focused element.
154154
----
155155

156156
(((autofocus attribute)))For some pages, the user is expected to
157-
want to start interacting with a form field immediately.
157+
want to interact with a form field immediately.
158158
JavaScript can be used to ((focus)) this field when the document is
159159
loaded, but HTML also provides the `autofocus` attribute, which
160160
produces the same effect but lets the browser know what we are trying
@@ -182,8 +182,8 @@ the OK button, rather than going through the help link first:
182182
<button onclick="console.log('ok')" tabindex=2>OK</button>
183183
----
184184

185-
(((tabindex attribute)))By default, most types of HTML elements can
186-
not be focused. But you can add a `tabindex` attribute to any element,
185+
(((tabindex attribute)))By default, most types of HTML elements cannot
186+
be focused. But you can add a `tabindex` attribute to any element,
187187
which will make it focusable.
188188

189189
== Disabled fields ==
@@ -387,7 +387,7 @@ its `checked` property, which holds a Boolean value.
387387
tag))))(((labeling)))The `<label>` tag is used to associate a piece of
388388
text with an input ((field)). Its `for` attribute should refer to the
389389
`id` of the field. Clicking the label will activate the field, which focuses
390-
it and will toggle its value when it is a checkbox or radio button.
390+
it and toggles its value when it is a checkbox or radio button.
391391

392392
(((input (HTML tag))))(((multiple-choice)))A ((radio button)) is
393393
similar to a checkbox, but it's implicitly linked to other radio buttons
@@ -446,7 +446,7 @@ any number of options, rather than just a single option.
446446
(((select (HTML tag))))(((drop-down menu)))This
447447
will, in most browsers, show up differently than a non-`multiple`
448448
select field, which is commonly drawn as a _drop-down_ control that
449-
shows the options only when you _open_ it.
449+
shows the options only when you open it.
450450

451451
ifdef::book_target[]
452452

@@ -542,7 +542,7 @@ fields also support a `multiple` attribute, which makes it possible to
542542
select multiple files at the same time.
543543

544544
(((File type)))Objects in the `files` property have properties such as
545-
`name` (the file name), `size` (the file's size in bytes), and `type`
545+
`name` (the filename), `size` (the file's size in bytes), and `type`
546546
(the media type of the file, such as `text/plain` or `image/jpeg`).
547547

548548
[[filereader]]
@@ -551,7 +551,7 @@ type)))What it does not have is a property that contains the content
551551
of the file. Getting at that is a little more involved. Since reading
552552
a file from disk can take time, the interface will have to be
553553
asynchronous to avoid freezing the document. You can think of the
554-
`FileReader` constructor as being similar to `XMLHttpRequest`, but for
554+
`FileReader` constructor as being similar to `XMLHttpRequest` but for
555555
files.
556556

557557
[source,text/html]
@@ -745,7 +745,7 @@ not when a script does it.
745745
(((sessionStorage object)))There is another object similar to
746746
`localStorage` called `sessionStorage`. The difference between the two
747747
is that the content of `sessionStorage` is forgotten at the end of
748-
each _((session))_, which for most ((browser))s means whenever the
748+
each ((session)), which for most ((browser))s means whenever the
749749
browser is closed.
750750

751751
== Summary ==

0 commit comments

Comments
 (0)