• Stars
    star
    1,535
  • Rank 29,518 (Top 0.6 %)
  • Language
    HTML
  • License
    Other
  • Created almost 12 years ago
  • Updated 29 days ago

Reviews

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

Repository Details

DOM Standard

This repository hosts the DOM 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 DOM 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 DOM Standard and providing a pull request.

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

<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 prevelant theme is to omit end tags and not quote attributes (unless they contain a space).

Merge policy

If you can commit to this repository, see the WHATWG Maintainer Guidelines.

Tests

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

More Repositories

1

html

HTML Standard
HTML
7,729
star
2

fetch

Fetch Standard
HTML
2,085
star
3

streams

Streams Standard
HTML
1,331
star
4

loader

Loader Standard
JavaScript
608
star
5

url

URL Standard
HTML
507
star
6

webidl

Web IDL Standard
HTML
376
star
7

xhr

XMLHttpRequest Standard
HTML
309
star
8

encoding

Encoding Standard
HTML
266
star
9

console

Console Standard
HTML
263
star
10

fs

File System Standard
HTML
197
star
11

urlpattern

URL Pattern Standard
HTML
152
star
12

notifications

Notifications API Standard
HTML
129
star
13

storage

Storage Standard
HTML
123
star
14

infra

Infra Standard
HTML
112
star
15

compat

Compatibility Standard
HTML
105
star
16

mimesniff

MIME Sniffing Standard
HTML
103
star
17

platform.html5.org

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

fullscreen

Fullscreen API Standard
HTML
100
star
19

javascript

Obsolete
HTML
93
star
20

meta

Discussions and issues without a logical home
Python
91
star
21

whatwg.org

The WHATWG website and other static resources
72
star
22

web-history

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

html-build

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

sg

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

wattsi

Preprocessor for the HTML Standard
Pascal
55
star
26

html-differences

HTML differences from HTML4
HTML
43
star
27

meta-theme-color

Obsolete
42
star
28

websockets

WebSockets Standard
HTML
42
star
29

spec-factory

WHATWG Standard repository templates and infrastructure
Python
33
star
30

books

CSS Books
HTML
29
star
31

participant-data

How we track participants in the WHATWG
29
star
32

quirks

Quirks Mode Standard
HTML
27
star
33

misc-server

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

domparsing

DOM Parsing and Serialization Standard
JavaScript
22
star
35

figures

CSS Figures
HTML
19
star
36

participate.whatwg.org

JavaScript
17
star
37

xref

Obsolete
Python
16
star
38

testutils

Test Utils Standard
HTML
16
star
39

resources.whatwg.org

Obsolete
14
star
40

old-google-code-html5

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

build.whatwg.org

Build server for running whatwg/wattsi
JavaScript
11
star
42

whattweetbot-keys

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

wiki.whatwg.org

Resources used to run the WHATWG Wiki
PHP
6
star
44

js-hosts

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

blog.whatwg.org

WordPress Theme for blog.whatwg.org
PHP
5
star