Voltar ao ranking

whatwg/fetch

HTMLfetch.spec.whatwg.org

Fetch Standard

whatwgfetchstandard
Crescimento de estrelas
Estrelas
2.2k
Forks
398
Crescimento semanal
Issues
286
1k2k
set. de 2012abr. de 2017dez. de 2021jul. de 2026
README

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 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.

Issues labeled "good first issue" are a good place to get a taste for editing the Fetch Standard. Note that we don't assign issues and there's no reason to ask for availability either, just provide a pull request.

If you are thinking of suggesting a new feature, read through the FAQ and Working Mode documents to get yourself familiarized with the process.

We'd be happy to help you with all of this on Chat.

Pull requests

In short, change fetch.bs and submit your patch, with a good commit message.

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

To ensure your patch meets all the necessary requirements, please also see the Contributor Guidelines. Editors of the Fetch Standard are expected to follow the Maintainer Guidelines.

Tests

Tests are an essential part of the standardization process and will need to be created or adjusted as changes to the standard are made. Tests for the Fetch Standard can be found in the fetch/ directory of web-platform-tests/wpt.

A dashboard showing the tests running against browser engines can be seen at wpt.fyi/results/fetch.

Building "locally"

For quick local iteration, run make; this will use a web service to build the standard, so that you don't have to install anything. See more in the 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.

<p>The
<dfn method for=DOMTokenList lt=remove(tokens)|remove()><code>remove(<var>tokens</var>&hellip;)</code></dfn>
method, when invoked, must run these steps:

is okay and

<p>The <dfn method for=DOMTokenList
lt=remove(tokens)|remove()><code>remove(<var>tokens</var>&hellip;)</code></dfn> method, when
invoked, must run these steps:

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>For each <var>token</var> in <var>tokens</var>, in given order, that is not in
 <a>tokens</a>, append <var>token</var> to <a>tokens</a>.

is not indented, but

<ol>
 <li>
  <p>For each <var>token</var> in <var>tokens</var>, run these substeps:

  <ol>
   <li><p>If <var>token</var> is the empty string, <a>throw</a> a {{SyntaxError}} exception.

is.

End tags may be included (if done consistently) and attributes may be quoted (using double quotes), though the prevalent theme is to omit end tags and not quote attributes (unless they contain a space).

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 "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>.
Repositórios relacionados
whatwg/html

HTML Standard

HTMLOtherwhatwghtml
html.spec.whatwg.org/multipage/
9.3k3.2k
node-fetch/node-fetch

A light-weight module that brings the Fetch API to Node.js

JavaScriptnpmMIT Licensefetchhttp
8.9k1.1k
graphql-hive/graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.

TypeScriptnpmMIT Licensegraphqlgraphql-server
the-guild.dev/graphql/yoga-server
8.5k593
dotansimha/graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.

TypeScriptnpmMIT Licensegraphqlgraphql-server
the-guild.dev/graphql/yoga-server
8.3k580
web-platform-tests/wpt

Test suites for Web platform specs — including WHATWG, W3C, and others

HTMLOthertestinghtml
web-platform-tests.org
6k3.9k
capricorn86/happy-dom

A JavaScript implementation of a web browser without its graphical user interface

TypeScriptnpmMIT Licensejavascripttypescript
4.6k304
inikulin/parse5

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.

TypeScriptnpmMIT Licensehtml-parsinghtml
3.9k255
stevenvachon/broken-link-checker

Find broken links, missing images, etc within your HTML.

JavaScriptnpmMIT Licenselinksurls
2.1k307
validator/validator

The Nu Html Checker (vnu)

JavaMavenMIT Licenselinterweb-standards
validator.github.io/validator/
2k329
whatwg/dom

DOM Standard

HTMLOtherwhatwgdom
dom.spec.whatwg.org
1.7k337
whatwg/streams

Streams Standard

HTMLOtherstreamstreams-standard
streams.spec.whatwg.org
1.4k175
ladjs/frisbee

:dog2: Modern fetch-based alternative to axios/superagent/request. Great for React Native.

JavaScriptnpmMIT Licenseapi-wrappersuperagent
niftylettuce.com/frisbee
1.1k65