• Stars
    star
    2,106
  • Rank 21,914 (Top 0.5 %)
  • Language
    HTML
  • License
    Other
  • Created about 12 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fetch Standard

This repository hosts the Fetch Standard.

Code of conduct

We are committed to providing a friendly, safe, and welcoming environment for all. Please read and respect the WHATWG Code of Conduct.

Contribution opportunities

Folks notice minor and larger issues with the Fetch Standard all the time and we'd love your help fixing those. Pull requests for typographical and grammar errors are also most welcome.

We'd be happy to mentor you through this process. If you're interested and need help getting started, leave a comment on the issue or ask around on IRC.

Pull requests

In short, change fetch.bs and submit your patch, with a good commit message. Consider reading through the WHATWG FAQ if you are new here.

Please add your name to the Acknowledgments section in your first pull request, even for trivial fixes. The names are sorted lexicographically.

Building "locally"

For quick local iteration, run make. To verify your changes locally, run make deploy. See more in the WHATWG Contributor Guidelines.

Formatting

Use a column width of 100 characters.

Do not use newlines inside "inline" elements, even if that means exceeding the column width requirement.

 <li><p>Execute
 <a href=https://w3c.github.io/webappsec-csp/#set-response-csp-list>set <var>response</var>'s CSP list</a>
 on <var>response</var>. <span data-anolis-ref>CSP</span>

is okay and

<li><p>Execute
<a href=https://w3c.github.io/webappsec-csp/#set-response-csp-list>set <var>response</var>'s CSP
list</a> on <var>response</var>. <span data-anolis-ref>CSP</span>

is not.

Using newlines between "inline" element tag names and their content is also forbidden. (This actually alters the content, by adding spaces.) That is

<a>token</a>

is fine and

<a>token
</a>

is not.

An <li> element always has a <p> element inside it, unless it's a child of <ul class=brief>.

If a "block" element contains a single "block" element, do not put it on a newline.

Do not indent for anything except a new "block" element. For instance

 <li><p>Set <var>response</var>'s <span title=concept-response-url-list>url list</span> to a copy of
 <var>request</var>'s <span title=concept-request-url-list>url list</span>.

is not indented, but

 <li>
  <p>Run these substeps <span data-anolis-spec=html>in parallel</span>:

  <ol>

is.

End tags must be omitted when possible and attribute values must not be quoted (if necessary, use double quotes).

Place one newline between paragraphs (including list elements). Place three newlines before <h2>, and two newlines before other headings. This does not apply when a nested heading follows the parent heading.

<ul>
 <li><p>Do not place a newline above.

 <li><p>Place a newline above.
</ul>

<p>Place a newline above.


<h3>Place two newlines above.</h3>

<h4>Placing one newline is OK here.</h4>


<h4>Place two newlines above.</h4>

Use camel case for variable names and sentence case use spaced names for definitions, algorithms, etc.

<p>A <a for=/>request</a> has an associated
<dfn export for=request id=concept-request-redirect-mode>redirect mode</dfn>,...
<p>Let <var>redirectMode</var> be <var>request</var>'s <a for=request>redirect mode</a>.

Merge policy

If you can commit to this repository, see the maintainer guidelines.

Tests

Tests can be found in the fetch/ directory of web-platform-tests/wpt.

More Repositories

1

html

HTML Standard
HTML
8,067
star
2

dom

DOM Standard
HTML
1,576
star
3

streams

Streams Standard
HTML
1,350
star
4

loader

Loader Standard
JavaScript
608
star
5

url

URL Standard
HTML
532
star
6

webidl

Web IDL Standard
HTML
405
star
7

xhr

XMLHttpRequest Standard
HTML
314
star
8

encoding

Encoding Standard
HTML
273
star
9

console

Console Standard
HTML
263
star
10

fs

File System Standard
HTML
210
star
11

urlpattern

URL Pattern Standard
HTML
157
star
12

notifications

Notifications API Standard
HTML
135
star
13

storage

Storage Standard
HTML
124
star
14

compat

Compatibility Standard
HTML
114
star
15

infra

Infra Standard
HTML
112
star
16

mimesniff

MIME Sniffing Standard
HTML
105
star
17

platform.html5.org

Moved to https://html-now.github.io/
HTML
105
star
18

fullscreen

Fullscreen API Standard
HTML
101
star
19

javascript

Obsolete
HTML
93
star
20

meta

Discussions and issues without a logical home
Python
91
star
21

compression

Compression Standard
HTML
85
star
22

whatwg.org

The WHATWG website and other static resources
72
star
23

web-history

Milestones in the history of the modern Web platform
67
star
24

html-build

Build scripts for https://github.com/whatwg/html
HTML
58
star
25

sg

A place to raise issues with the WHATWG Steering Group
Python
58
star
26

wattsi

Preprocessor for the HTML Standard
Pascal
55
star
27

websockets

WebSockets Standard
HTML
46
star
28

html-differences

HTML differences from HTML4
HTML
43
star
29

meta-theme-color

Obsolete
42
star
30

spec-factory

WHATWG Standard repository templates and infrastructure
Python
35
star
31

books

CSS Books
HTML
29
star
32

participant-data

How we track participants in the WHATWG
29
star
33

quirks

Quirks Mode Standard
HTML
27
star
34

misc-server

Miscellaneous resources for the servers hosting *.whatwg.org domains
Python
22
star
35

domparsing

DOM Parsing and Serialization Standard
JavaScript
22
star
36

figures

CSS Figures
HTML
19
star
37

participate.whatwg.org

JavaScript
17
star
38

testutils

Test Utils Standard
HTML
16
star
39

xref

Obsolete
Python
15
star
40

resources.whatwg.org

Obsolete
14
star
41

old-google-code-html5

Automatically exported from code.google.com/p/html5
Python
12
star
42

build.whatwg.org

Build server for running whatwg/wattsi
JavaScript
11
star
43

whattweetbot-keys

Command-line utility to associate a Twitter account with a Twitter app.
JavaScript
6
star
44

wiki.whatwg.org

Resources used to run the WHATWG Wiki
PHP
6
star
45

js-hosts

Coordination across various JavaScript hosts, beyond web browsers
6
star
46

blog.whatwg.org

WordPress Theme for blog.whatwg.org
PHP
5
star