### Formatting: Allowed indentation example Source: https://github.com/whatwg/fetch/blob/main/README.md Shows the allowed indentation: indentation is used for new block elements. This example is indented. ```html
For each token in tokens, run these substeps:
If token is the empty string, throw a {{SyntaxError}} exception. ``` -------------------------------- ### Formatting: Forbidden indentation example Source: https://github.com/whatwg/fetch/blob/main/README.md Shows the forbidden indentation: do not indent for anything except a new block element. This example is not indented. ```html
For each token in tokens, in given order, that is not in tokens, append token to tokens. ``` -------------------------------- ### Formatting: Allowed newline inside inline element Source: https://github.com/whatwg/fetch/blob/main/README.md Shows the allowed formatting for inline elements: newlines are not allowed inside inline elements, even if it exceeds the column width. This example is acceptable. ```html
The
remove(tokens…)
method, when invoked, must run these steps:
```
--------------------------------
### Formatting: Forbidden newline inside inline element
Source: https://github.com/whatwg/fetch/blob/main/README.md
Shows the forbidden formatting: newlines inside inline elements are not allowed, even if it exceeds the column width. This example is not acceptable.
```html
The remove(tokens…) method, when
invoked, must run these steps:
```
--------------------------------
### Formatting: Spaced names for definitions
Source: https://github.com/whatwg/fetch/blob/main/README.md
Shows the use of 'spaced' names for definitions, algorithms, etc. in the Fetch Standard.
```html
A request has an associated redirect mode,... ``` -------------------------------- ### Formatting: Camel-case variable names Source: https://github.com/whatwg/fetch/blob/main/README.md Shows the use of camel-case for variable names in the Fetch Standard. ```html
Let redirectMode be request's redirect mode. ``` -------------------------------- ### Formatting: Newline placement rules Source: https://github.com/whatwg/fetch/blob/main/README.md Shows the required newline placement: one newline between paragraphs, three before
Do not place a newline above.
Place a newline above.
Place a newline above.