Skip to content

Commit bf867fc

Browse files
committed
Copyediting chapter 20
1 parent e97ec19 commit bf867fc

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

18_http.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ This example extracts the selected values from a `multiple` select field and use
648648

649649
## File fields
650650

651-
{{index file, "hard drive", "file system", security, "file field", "input (HTML tag)"}}
651+
{{index file, "hard drive", "filesystem", security, "file field", "input (HTML tag)"}}
652652

653653
File fields were originally designed as a way to ((upload)) files from the user's machine through a form. In modern browsers, they also provide a way to read such files from JavaScript programs. The field acts as a kind of gatekeeper. The script cannot simply start reading private files from the user's computer, but if the user selects a file in such a field, the browser interprets that action to mean that the script may read the file.
654654

@@ -837,7 +837,7 @@ HTML can represent various types of form fields, such as text fields, checkboxes
837837

838838
When a form is submitted, a `"submit"` event is fired on it. A JavaScript handler can call `preventDefault` on that event to disable the browser's default behavior. Form field elements may also occur outside of a form tag.
839839

840-
When the user has selected a file from their local file system in a file picker field, the `FileReader` interface can be used to access the content of this file from a JavaScript program.
840+
When the user has selected a file from their local filesystem in a file picker field, the `FileReader` interface can be used to access the content of this file from a JavaScript program.
841841

842842
The `localStorage` and `sessionStorage` objects can be used to save information in a way that survives page reloads. The first object saves the data forever (or until the user decides to clear it), and the second saves it until the browser is closed.
843843

0 commit comments

Comments
 (0)