Skip to content

Commit bdfe0ab

Browse files
authored
Add missing underscore escapes in part 0b (en)
1 parent 66428b5 commit bdfe0ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/0/en/part0b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ The Form Data dropdown is within the new Payload tab, located to the right of th
440440
441441
![form data dropdown in developer tools](../../images/0/23e.png)
442442
443-
The Form tag has attributes <i>action</i> and <i>method</i>, which define that submitting the form is done as an HTTP POST request to the address <i>new_note</i>.
443+
The Form tag has attributes <i>action</i> and <i>method</i>, which define that submitting the form is done as an HTTP POST request to the address <i>new\_note</i>.
444444
445445
![action and method highlight](../../images/0/24e.png)
446446
@@ -549,7 +549,7 @@ form.onsubmit = function(e) {
549549
}
550550
```
551551
552-
The command <em>document.getElementById('notes_form')</em> instructs the code to fetch a reference to the HTML form element on the page that has the ID "notes_form" and to register an <i>event handler</i> to handle the form's submit event. The event handler immediately calls the method <em>e.preventDefault()</em> to prevent the default handling of form's submit. The default method would send the data to the server and cause a new GET request, which we don't want to happen.
552+
The command <em>document.getElementById('notes\_form')</em> instructs the code to fetch a reference to the HTML form element on the page that has the ID "notes\_form" and to register an <i>event handler</i> to handle the form's submit event. The event handler immediately calls the method <em>e.preventDefault()</em> to prevent the default handling of form's submit. The default method would send the data to the server and cause a new GET request, which we don't want to happen.
553553
554554
Then the event handler creates a new note, adds it to the notes list with the command <em>notes.push(note)</em>, rerenders the note list on the page and sends the new note to the server.
555555

0 commit comments

Comments
 (0)