Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync upstream #1

Merged
merged 30 commits into from
Apr 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9e3ce67
Add more legacy event types for createEvent()
ayg Apr 14, 2016
1784903
Meta: improve pull request instructions for DOM
annevk Apr 15, 2016
e002d78
Enable an event listener to be invoked just once
annevk Apr 8, 2016
346e32c
Editorial: web compatibility typically remains relevant
annevk Apr 15, 2016
b8d2854
Shadow: define attachShadow() for custom elements
annevk Apr 15, 2016
9b8612a
Meta: make it easier to reference participate in a tree
jyasskin Apr 12, 2016
36ef32e
Define node document for new Text nodes
annevk Apr 16, 2016
4b291d1
Use a single concept for attribute changes
annevk Apr 18, 2016
a9d2a37
SVGEvent is only Gecko, Blink also has SVGEvents
ayg Apr 18, 2016
537e579
Set createDocument()'s content type based on namespace
ayg Apr 13, 2016
cb7c16b
Make document.createEvent("touchevent") sometimes throw
zcorpan Apr 19, 2016
81566a3
Shadow: define slotchange event
annevk Apr 19, 2016
3536dd9
Editorial: update custom element cross-spec references
domenic Apr 18, 2016
a878733
Editorial: fix a few cross-linking missteps
domenic Apr 18, 2016
5fc5624
Editorial: make "is" and "prefix" optional in "create an element"
domenic Apr 18, 2016
7b42a54
Use "create an element" in createHTMLDocument
domenic Apr 18, 2016
e4b93c8
Editorial: align exception language with IDL
annevk Apr 19, 2016
9c00ee2
Editorial: introduce more shadow-including terms for CSS
annevk Apr 19, 2016
e35b570
Editorial: distributed -> flattened
annevk Apr 19, 2016
d4d27a6
Meta: export more terms
annevk Apr 20, 2016
8ae8749
Editorial: add "shadow host" and "assigned" as terms
annevk Apr 20, 2016
8d281a3
Editorial: flip non-null/otherwise conditions
shvaikalesh Apr 20, 2016
fdad8cb
Shadow: <slot> is now defined in HTML
annevk Apr 21, 2016
a13a3c7
Remove passive as event listener key
RByers Apr 21, 2016
0f08850
Meta: point out event's timeStamp is likely to change
annevk Apr 21, 2016
3cd02d1
Add [CEReactions] annotations to mutating methods
domenic Apr 21, 2016
a768d8e
Editorial: check stop propagation flag at start of invoke
annevk Apr 21, 2016
a77a920
Editorial: deduplicate Veli Şenol
annevk Apr 26, 2016
2185b63
Editorial: define defaults for EventListenerOptions
annevk Apr 26, 2016
e4f904f
Meta: link to Japanese translation
annevk Apr 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 65 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,71 @@ started, leave a comment on the issue or ask around [on IRC](https://wiki.whatwg

### Pull requests

See the [whatwg/html README](https://github.com/whatwg/html/blob/master/README.md) for the general
guidelines. Note that `source` is `dom.bs` and "Acknowledgements" is "Acknowledgments" here (I
know). Also, the DOM Standard uses [bikeshed](https://github.com/tabatkins/bikeshed) to generate
`dom.html`. (Do not worry if using that tool is too complicated, your pull request does not need to
contain the generated HTML.)
In short, change `dom.bs` and submit your patch, with a
[good commit message](https://github.com/erlang/otp/wiki/Writing-good-commit-messages). Consider
reading through the [WHATWG FAQ](https://wiki.whatwg.org/wiki/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.

To generate `dom.html`, [bikeshed](https://github.com/tabatkins/bikeshed) can be used. (Do not worry
if using that tool is too complicated, your pull request does not need to contain the generated HTML
to be accepted.)

#### Formatting

Use a column width of 100 characters.

Do not use newlines inside "inline" elements, even if that means exceeding the column width
requirement.
```html
<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
```html
<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
```html
<a>token</a>
```
is fine and
```html
<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
```html
<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
```html
<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).

### Tests

Expand Down
Loading