惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
P
Proofpoint News Feed
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News | PayPal Newsroom
Application and Cybersecurity Blog
Application and Cybersecurity Blog
O
OpenAI News
S
Security @ Cisco Blogs
宝玉的分享
宝玉的分享
Hacker News: Ask HN
Hacker News: Ask HN
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
TaoSecurity Blog
TaoSecurity Blog
Help Net Security
Help Net Security
Latest news
Latest news
NISL@THU
NISL@THU
S
Security Affairs
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
AI
AI
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
小众软件
小众软件
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
AWS News Blog
AWS News Blog
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
I
InfoQ
Schneier on Security
Schneier on Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
The Exploit Database - CXSecurity.com
IT之家
IT之家
T
Threatpost
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
腾讯CDC
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
News and Events Feed by Topic
L
LINUX DO - 最新话题
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
H
Heimdal Security Blog
S
SegmentFault 最新的问题

Recent Commits to xhr:main

Overwrite the charset parameter for URLSearchParams objects · whatwg/xhr@d375b28 Editorial: modernize prose · whatwg/xhr@fe6c5fe Meta: update repository files · whatwg/xhr@0822635 Reset request body when open() is called · whatwg/xhr@38e3f59 Review Draft Publication: August 2025 · whatwg/xhr@84b66b3 Meta: link Korean translation · whatwg/xhr@a170690 Meta: link Simplified Chinese translation · whatwg/xhr@f284317 Allow doubles for ProgressEvent's loaded and total · whatwg/xhr@4a6401c Editorial: fix Bikeshed linking errors · whatwg/xhr@150a3b8 Meta: update link for fragment serialization algorithm · whatwg/xhr@f2f0397 Meta: adjust dfn-for of events on XMLHttpRequestEventTarget · whatwg/xhr@fd438ec Review Draft Publication: February 2024 · whatwg/xhr@fdd619d Meta: update repository files · whatwg/xhr@813e308 Editorial: use HTML's encoding-parse a URL · whatwg/xhr@a5597b9 Review Draft Publication: February 2023 · whatwg/xhr@1cccb46 Add optional submitter argument to FormData constructor · whatwg/xhr@1c2d7f2 Align with Fetch's forbidden request-header refactor · whatwg/xhr@494431a Meta: my employer changed · whatwg/xhr@545cdd5 Meta: update repository files · whatwg/xhr@112c3bb
Meta: update repository files · whatwg/xhr@a2c40a0
annevk · 2023-09-27 · via Recent Commits to xhr:main

@@ -2,38 +2,110 @@ This repository hosts the [XMLHttpRequest Standard](https://xhr.spec.whatwg.org/

2233

## Code of conduct

445-

We are committed to providing a friendly, safe, and welcoming environment for all. Please read and

6-

respect the [WHATWG Code of Conduct](https://whatwg.org/code-of-conduct).

5+

We are committed to providing a friendly, safe, and welcoming environment for all. Please read and respect the [Code of Conduct](https://whatwg.org/code-of-conduct).

7687

## Contribution opportunities

9810-

We'd love your help fixing outstanding issues. Pull requests for typographical and grammar errors

11-

are also most welcome.

9+

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

121013-

We'd be happy to mentor you through this process. If you're interested and need help getting

14-

started, leave a comment on the issue or ask around [on IRC](https://whatwg.org/irc).

11+

Issues labeled ["good first issue"](https://github.com/whatwg/xhr/labels/good%20first%20issue) are a good place to get a taste for editing the XMLHttpRequest Standard. Note that we don't assign issues and there's no reason to ask for availability either, just provide a pull request.

12+13+

If you are thinking of suggesting a new feature, read through the [FAQ](https://whatwg.org/faq) and [Working Mode](https://whatwg.org/working-mode) documents to get yourself familiarized with the process.

14+15+

We'd be happy to help you with all of this [on Chat](https://whatwg.org/chat).

15161617

## Pull requests

171818-

In short, change `xhr.bs` and submit your patch, with a

19-

[good commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md). Consider

20-

reading through the [WHATWG FAQ](https://whatwg.org/faq) if you are new here.

19+

In short, change `xhr.bs` and submit your patch, with a [good commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md).

20+21+

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

22+23+

To ensure your patch meets all the necessary requirements, please also see the [Contributor Guidelines](https://github.com/whatwg/meta/blob/main/CONTRIBUTING.md). Editors of the XMLHttpRequest Standard are expected to follow the [Maintainer Guidelines](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md).

24+25+

## Tests

212622-

Please add your name to the Acknowledgments section in your first pull request, even for trivial

23-

fixes. The names are sorted lexicographically.

27+

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 XMLHttpRequest Standard can be found in the `xhr/` directory of [`web-platform-tests/wpt`](https://github.com/web-platform-tests/wpt).

28+29+

A dashboard showing the tests running against browser engines can be seen at [wpt.fyi/results/xhr](https://wpt.fyi/results/xhr).

24302531

## Building "locally"

263227-

For quick local iteration, run `make`. To verify your changes locally, run `make deploy`. See more

28-

in the

29-

[WHATWG Contributor Guidelines](https://github.com/whatwg/meta/blob/main/CONTRIBUTING.md#building).

33+

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](https://github.com/whatwg/meta/blob/main/CONTRIBUTING.md#building).

303431-

## Merge policy

35+

## Formatting

323633-

If you can commit to this repository, see the

34-

[WHATWG Maintainer Guidelines](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md).

37+

Use a column width of 100 characters.

38+39+

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

40+

```html

41+

<p>The

42+

<dfn method for=DOMTokenList lt=remove(tokens)|remove()><code>remove(<var>tokens</var>&hellip;)</code></dfn>

43+

method, when invoked, must run these steps:

44+

```

45+

is okay and

46+

```html

47+

<p>The <dfn method for=DOMTokenList

48+

lt=remove(tokens)|remove()><code>remove(<var>tokens</var>&hellip;)</code></dfn> method, when

49+

invoked, must run these steps:

50+

```

51+

is not.

52+53+

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

54+

```html

55+

<a>token</a>

56+

```

57+

is fine and

58+

```html

59+

<a>token

60+

</a>

61+

```

62+

is not.

63+64+

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

65+66+

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

67+68+

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

69+

```html

70+

<li><p>For each <var>token</var> in <var>tokens</var>, in given order, that is not in

71+

<a>tokens</a>, append <var>token</var> to <a>tokens</a>.

72+

```

73+

is not indented, but

74+

```html

75+

<ol>

76+

<li>

77+

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

78+79+

<ol>

80+

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

81+

```

82+

is.

83+84+

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

85+86+

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.

87+

```html

88+

<ul>

89+

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

90+91+

<li><p>Place a newline above.

92+

</ul>

93+94+

<p>Place a newline above.

95+96+97+

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

98+99+

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

3510036-

## Tests

3710138-

Tests can be found in the `xhr/` directory of

39-

[web-platform-tests/wpt](https://github.com/web-platform-tests/wpt).

102+

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

103+

```

104+

Use camel-case for variable names and "spaced" names for definitions, algorithms, etc.

105+

```html

106+

<p>A <a for=/>request</a> has an associated

107+

<dfn export for=request id=concept-request-redirect-mode>redirect mode</dfn>,...

108+

```

109+

```html

110+

<p>Let <var>redirectMode</var> be <var>request</var>'s <a for=request>redirect mode</a>.

111+

```