Skip to content
Closed

<html> #4053

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
01bc5df
Permit structured serialization of BigInt
littledan Feb 26, 2018
b3e9942
Editorial: fix grammar issue in the "Privacy concerns" section
ediosyncratic Feb 26, 2018
869d451
Duplicates in StructuredSerializeWithTransfer's transferList
annevk Feb 26, 2018
2a305fc
Apply the rules for audio playback to media elements
donovanglover Feb 17, 2018
84d96df
Mark focus events composed
annevk Mar 2, 2018
a53db50
Editorial: fix server-sent events intro variable names
vrana Mar 4, 2018
4938130
Dev edition: adjust styling for smaller screens
annevk Mar 5, 2018
4823cf5
Editorial: cleanup activeElement
annevk Mar 5, 2018
7e941ae
Editorial: always state invalid value default
gloverdonovan Mar 5, 2018
6df4863
Add customElements.upgrade()
domenic Mar 7, 2018
185190c
Queue a task to run all the autofocusing steps
domenic Mar 7, 2018
9c0619a
Editorial: algorithmize the ImageData constructor
Ms2ger Mar 7, 2018
8bc214a
Dev edition: hide implementer-facing text for custom elements
domenic Mar 7, 2018
d661e87
Add DOM clobbering note to the form controls section
gloverdonovan Mar 8, 2018
021a575
Editorial: replace "solid black" with "opaque black"
TimvdLippe Mar 11, 2018
6f9e3c0
Editorial: use "identity matrix" consistently
TimvdLippe Mar 14, 2018
be2f5df
Editorial: improve HTMLAllCollection IDL
annevk Mar 14, 2018
9a2a66c
Make event handlers share a code path with addEventListener()
annevk Mar 14, 2018
ac52e65
Remove processing for document.open()'s type parameter
annevk Mar 14, 2018
a4bb346
Remove the concept of "dialog group"
Mar 15, 2018
faa4c20
Clarify ASCII-case-insensitive matching for <meta>'s name
TimvdLippe Mar 16, 2018
b5c6eed
Improve note on escaped characters in iframes srcdoc
earnubs Mar 16, 2018
2e8be71
Editorial: clarify some text selection/cursor concepts
domenic Feb 16, 2018
a4cc068
Change textarea's relevant value to its API value
domenic Feb 16, 2018
3d2719a
Clamp selection and text entry cursor position on value changes
domenic Feb 17, 2018
233d984
Check for transferable detachedness after serializing
annevk Mar 21, 2018
81e8243
Add HTMLOrSVGElement interface mixin
annevk Mar 23, 2018
c3c7d2c
Editorial: fix a typo in Obsolete features
takenspc Mar 31, 2018
6d9c460
Meta: export the definition of CORS-same-origin for CSSOM
csnardi Apr 3, 2018
0213670
Fix CSS Display reference URL
Zegnat Apr 2, 2018
bfdf62f
Meta: remove unused secure context terms
annevk Apr 4, 2018
d5c17df
Editorial: Fix indentation of opening line of interface DataTransfer
dbaron Apr 7, 2018
5d091c2
Allow mathematical expressions in <img sizes>
musgravejw Apr 9, 2018
5b653a9
Fix customElements.upgrade() to use shadow-including tree order
tkent-google Apr 16, 2018
bec96b1
Make it clear method and formmethod take "dialog" as value
musgravejw Apr 20, 2018
5fa3e5c
Editorial: narrow the return type of insertRow()
saschanaz Apr 20, 2018
d9249d1
Editorial: use a flag to track recursive "unload a document"
gterzian Apr 20, 2018
cc12390
Editorial: make traverse the history pass a request to navigate
yutakahirano Apr 26, 2018
9bc8dee
Allow <script> inside <hgroup>
annevk Jan 22, 2018
3072f1d
Set request's reload-navigation flag for reloads
yutakahirano Apr 27, 2018
8c212e5
Move _charset_ handling to construct the form data set
tkent-google Apr 27, 2018
d3dbda5
Extending WindowOrWorkerGlobalScope requires a partial interface mixin
saschanaz Apr 27, 2018
9c13539
<meta http-equiv=set-cookie> is now a no-op
annevk Apr 27, 2018
ee5ff06
Make MessageChannel's close() set [[Detached]]
annevk Apr 27, 2018
423c664
Use DOM's "replace all" primitive in document.open()
annevk Apr 30, 2018
d5903c4
Clarify document.open() event listener removal
annevk May 2, 2018
e6a2924
Editorial: lowercase content-security-policy <meta http-equiv> value
annevk Apr 27, 2018
51bd770
Treat trusted contextmenu events as user activation
mustaqahmed May 2, 2018
8bd6fb3
Editorial: modernize the style of various document-accepting algorithms
musgravejw May 2, 2018
fdbeb95
Make document.open() not reset the encoding to UTF-8
annevk May 2, 2018
44a87a9
setRangeText() does not always have four arguments
musgravejw May 7, 2018
0b84357
Remove SVGElement include now it is in SVG
dstorey May 8, 2018
a1e8b1a
Remove 'type' from form data set tuples
tkent-google May 8, 2018
1b37f96
Editorial: spell stylesheet as style sheet consistently
annevk May 8, 2018
65d1172
Fix arguments passed to the IMSGFP
domfarolino May 11, 2018
90a60b2
Remove "control group" concept from the focus model
May 14, 2018
a3dca41
Editorial: remove form and submitter type declarations
amoseui May 16, 2018
8b30fc9
Dev edition: remove spurious mention of HTMLMenuElement
annevk May 16, 2018
691488b
Meta: export download & media fetch definitions
jakearchibald May 17, 2018
7069de4
Reference SVG 2
dstorey May 18, 2018
07ab508
Specify which settings object is used for dynamic import
nhiroki May 22, 2018
ce8404f
Do not use percent decode on strings
annevk Oct 10, 2017
9dbad6a
Use the current high resolution time concept
annevk May 23, 2018
98335c1
Fix contradictory statement about formenctype invalid value default
ericwilligers May 25, 2018
f95aba7
Editorial: replace "form data set" with "entry list" (from FormData)
tkent-google May 25, 2018
c33665f
Dev edition: fix search results alignment
May 25, 2018
437ae8e
Set request's history-navigation flag for history traversal
yutakahirano May 25, 2018
3876e4b
Minor error in the Adaptive images section
harttle May 29, 2018
f9d325f
Meta: Commit Snapshot and Review Draft support
annevk May 29, 2018
f8bd887
Editorial: make the type of custom element constructors stricter
yuki3 May 29, 2018
0d28f8f
Add referrerpolicy attribute support to <script>s
domfarolino May 30, 2018
b3c7c89
Change <td hidden> to render as display: none
zcorpan Jun 5, 2018
9592eb5
Add "environment discarding steps" hook
mfalken Jun 6, 2018
326c644
Build upon URL rather than PSL
annevk Jun 7, 2018
85e1e72
Make popstate and hashchange events not bubble
foolip Jun 7, 2018
c0d2a32
Make document.domain's getter not conditonal on a browsing context
annevk Jun 6, 2018
54acf7e
Update web-platform-tests URL
foolip Jun 11, 2018
c50e528
Fix 'scroll an element into view' invocations
zcorpan Jun 11, 2018
184be2f
Use fetch client settings object for fetching dependency modules
hiroshige-g Jun 13, 2018
4539076
Editorial: fix broken #script-processing-model link
gterzian Jun 17, 2018
78741b7
Integrate Feature Policy concepts into HTML
clelland Jun 22, 2018
6be3127
Correctly set "is value" in [HTMLConstructor]
domenic Jun 27, 2018
8f2816a
Editorial: separate out document.open() methods definitions
TimothyGu Jun 28, 2018
853485e
Add iframe's allow="" attribute to the indices
clelland Jun 28, 2018
29c2ab6
Meta: link to Wattsi syntax documentation from CONTRIBUTING.md
domenic Jun 29, 2018
4e9c466
Fix crucial typo in script-escaping example
mathiasbynens Jul 2, 2018
5a6930a
Fix example where <script is escaped as <\script
mathiasbynens Jul 3, 2018
8176d05
Editorial: change "resolve a module specifier" to take a URL
domfarolino Jul 9, 2018
28a86ff
Meta: link "abrupt completion" to the JavaScript specification
mfalken Jul 10, 2018
8cd2bcb
Remove context2d.resetClip()
zbjornson Jul 10, 2018
b2ff9c7
Remove sentences about documents with no focusable area
Jul 11, 2018
51ac91f
Editorial: use .mjs for modules more consistently in examples
mathiasbynens Jul 11, 2018
21b8363
Review Draft Publication: July 2018
annevk Jul 23, 2018
a6e5462
Editorial: mark up code blocks with their language and <code>
Zirro Jul 23, 2018
0ba1d47
Fix incorrect comment in canvas example
irrationalRock Jul 24, 2018
db6d0df
Clarify and explain agents and agent clusters
domenic Jul 25, 2018
39c948b
Fix calls to InitializeHostDefinedRealm
TimothyGu Jul 28, 2018
4f438d5
Add an explanation of active vs. fully active documents
domenic Aug 1, 2018
9d7cf12
Add self.queueMicrotask()
domenic Aug 1, 2018
7a52b3e
Add examples for queueMicrotask()
domenic Aug 2, 2018
8483ab4
Fix example variable name typo for queueMicrotask()
domenic Aug 2, 2018
753e9fe
Rewrite event handlers section for more rigor and correctness
TimothyGu Aug 7, 2018
85e842a
Enable text rendering on OffscreenCanvas
fserb Aug 9, 2018
823f4bc
Revise event listener removal in document.open()
TimothyGu Aug 9, 2018
ad3dda5
Return the completion record result from running a script
mfalken Aug 10, 2018
ea3cde3
Remove help cursor from user-agent stylesheet
domenic Aug 10, 2018
023c112
Fix and clarify some [CEReactions] annotations
domenic Aug 11, 2018
5e43bcf
Meta: update PAGEVIS reference
TimothyGu Aug 13, 2018
b71f885
Return empty on "do not run" for running a script
mfalken Aug 14, 2018
141c658
Editorial: correct semicolon placement for inputmode attribute
rahulpurohit29 Aug 15, 2018
fefb879
Editorial: fix confusing phrasing for opener setter
domenic Aug 15, 2018
34cc15a
Change fieldset's default padding to match the majority
zcorpan Aug 16, 2018
92b90bd
Integrate with the Paint Timing spec
tdresser Aug 16, 2018
6f769b8
document.open() simplifications, part 1
TimothyGu Aug 16, 2018
593486d
Fix attribute descriptions in the index for fieldset
zcorpan Aug 17, 2018
39dbb3e
Cleanup remaining Document/Window object relations
annevk Aug 17, 2018
55c75fd
Editorial: do not use .mjs extension for classic scripts
xgebi Aug 20, 2018
d0b0925
Clarify and tweak <embed> processing model
domenic Aug 20, 2018
c5eda3f
Editorial: use <cite> in section 2.2.2 for CSS Syntax
aaqaishtyaq Aug 21, 2018
1694139
Refer to a fieldset's legend as a caption to reduce confusion
zcorpan Aug 21, 2018
bef6f78
Editorial: use "isomorphic decode" for Refresh header steps
irrationalRock Aug 23, 2018
6440cca
Remove overridden reload concept
TimothyGu Aug 17, 2018
f42dcf0
Editorial: Factor out history.push/replaceState() steps
TimothyGu Aug 17, 2018
ae7cf0c
document.open() simplifications, part 2
TimothyGu Aug 20, 2018
288fc16
Editorial: Remove parameters from document.open() references
TimothyGu Aug 21, 2018
951f9b0
Rename target client id to replaces client id
jungkees Aug 24, 2018
825ede5
Change fieldset's min-width to min-inline-size
zcorpan Aug 24, 2018
3d9b41d
Add requestAnimationFrame() in workers
fserb Aug 27, 2018
7d21798
Make document.open() set the document to no-quirks
TimothyGu Aug 28, 2018
ae688ea
document.open(): remove fragment before propagating entry document's URL
TimothyGu Aug 29, 2018
3a20936
Integrate with WebGL 2.0 ("webgl2" context)
kenrussell Aug 30, 2018
d6feb05
Annotate OffscreenCanvas attributes with [EnforceRange]
peria Aug 30, 2018
7711a1f
Add advances to TextMetrics and change baselines API
fserb Aug 30, 2018
cd9aab6
Match TextMetrics emHeightDescent with the rest of the API
fserb Aug 31, 2018
ad541d6
Allow document.open()/write() to be called on non-active documents
TimothyGu Sep 4, 2018
32df557
Editorial: remove duplicate word in 12.1.2 Elements
philipahlberg Sep 5, 2018
ae94ec5
Remove unnecessary security check from measureText()
annevk Sep 5, 2018
712a053
Meta: wrap IDL block in <code> for consistency
foolip Sep 5, 2018
1ca520a
document.open(): only abort when there is a navigation
TimothyGu Sep 6, 2018
aa374be
Tweak how accesskey on legend works
zcorpan Sep 6, 2018
ff800ef
Check there is a browsing context in document.open()'s abort step
TimothyGu Sep 7, 2018
ede3f61
Editorial: hexademical ➡️ hexadecimal
Yay295 Sep 10, 2018
180427c
Main part of the content has a dedicated element
annevk Jul 26, 2018
e92c28d
Meta: update some syntax highlighting stuff
domenic Aug 13, 2018
e000f5e
Editorial: use VoidFunction instead of Function in queueMicrotask()
yuki3 Sep 12, 2018
a5422d9
Add the enterkeyhint="" attribute
dtapuska Sep 12, 2018
f23329e
Add "autoplay" policy-controlled feature
clelland Sep 13, 2018
9ac387a
Meta: export WindowProxy's [[Window]] definition
TimothyGu Sep 14, 2018
6867dfa
Meta: add definition metadata for the nonce="" attribute
andypaicu Sep 14, 2018
31c0db3
Revert "Add advances to TextMetrics and change baselines API"
domenic Sep 17, 2018
6fbb7ff
Revamp how fieldset and legend rendering is defined
zcorpan Sep 19, 2018
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source text eol=lf diff=html linguist-language=HTML
*.wattsi text eol=lf diff=html linguist-language=HTML

*.css text eol=lf
*.html text eol=lf
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
- secure: "qI0QEOmT3P3x9MfWwY0F43CxV8MRvuYDUtGRXIXs1Utpk/1wJv4zsebyHabuusEai9QakRo1kexwAuAcbyeiFTXKwn8DKIId2BDx14/fzmHSsyj86W1Tao5HAoD4NDQReI+c3LX5ipDtInlBXip0NgMMmQiT4+IzVkf9itAewCg="
- ENCRYPTION_LABEL="1536cf00117f"
script:
- shellcheck review-draft.sh
- cd .. &&
git clone https://github.com/whatwg/html-build.git html-build &&
bash html-build/ci-deploy/outside-container.sh
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ We'd be happy to mentor you through this process. If you're interested and need

In short, change `source` and submit your patch, with a [good commit message](https://github.com/erlang/otp/wiki/Writing-good-commit-messages). Try to follow the source formatting rules below.

Note that `source` is written in a dialect of HTML, which is eventually compiled into the deployed standard by a tool called [Wattsi](https://github.com/whatwg/wattsi). Documentation for this dialect can be found [in the Wattsi repository](https://github.com/whatwg/wattsi/blob/master/Syntax.md).

Please add your name to the Acknowledgments section (search for `<!-- ACKS`) in your first pull request, even for trivial fixes. The names are sorted lexicographically.

To preview your changes locally, follow the instructions in the [html-build repository](https://github.com/whatwg/html-build).
Expand All @@ -20,7 +22,7 @@ To preview your changes locally, follow the instructions in the [html-build repo

In addition to generating the [singlepage](https://html.spec.whatwg.org/) and [multipage](https://html.spec.whatwg.org/multipage/) specifications, we also generate an [edition for developers](https://html.spec.whatwg.org/dev/). This is meant to exclude content that is of interest only to implementers. We can always use community help in properly enforcing this distinction, especially since for a long period the developer's edition was not working and so we made a lot of changes without properly considering their impact on it.

To mark an element as being omitted from the developer's edition, use a `w-nodev` attribute. Similarly, to mark something up as being omitted from the singlepage and multipage versions, use a `w-nohtml` attribute. This may require introducing container `<div>`s or `<span>`s; that's fine. Note that Web IDL blocks (`<pre class="idl">`) are automatically omitted by the build process, and so don't need `w-nodev` attributes.
To mark an element as being omitted from the developer's edition, use a `w-nodev` attribute. To only include it in the developer's edition, use a `w-dev` attribute. This may require introducing container `<div>`s or `<span>`s; that's fine. Note that Web IDL blocks (`<pre class="idl">`) are automatically omitted by the build process, and so don't need `w-nodev` attributes. (There also exist `w-nohtml`, `w-nosnap`, and `w-noreview` attributes which exclude information from the Living Standard, the Commit Snapshot, and the Review Draft respectively. Day-to-day changes will not require them.)

Another interesting feature is the `subdfn` attribute. This is useful for when something is defined inside text that is not present in the developer's edition (such as a Web IDL block). In that case, we can use the `subdfn` attribute on something which has a matching `data-x` attribute, to indicate the definition of the term for the purposes of the developer's edition.

Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
default:
@echo "Please see CONTRIBUTING.md for instructions on building HTML."

review: source
@./review-draft.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We appreciate all contributions, see the [guidelines for contributing](CONTRIBUT

### Tests

Tests are in the `html/` directory of the [web-platform-tests repository](https://github.com/w3c/web-platform-tests).
Tests are in the `html/` directory of the [web-platform-tests repository](https://github.com/web-platform-tests/wpt).

### Blame

Expand Down
2 changes: 1 addition & 1 deletion demos/canvas/blue-robot/index-idle.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
if (!animating) {
animating = true;
paint();
// but tick every 150ms, so that we don't slow down when we don't paint
// but tick every 100ms, so that we don't slow down when we don't paint
interval = setInterval(function () {
var dx = blueRobot.tick();
landscape.advance(dx);
Expand Down
2 changes: 1 addition & 1 deletion demos/canvas/blue-robot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
requestAnimationFrame(paint);
}
paint();
// but tick every 150ms, so that we don't slow down when we don't paint
// but tick every 100ms, so that we don't slow down when we don't paint
setInterval(function () {
var dx = blueRobot.tick();
landscape.advance(dx);
Expand Down
98 changes: 81 additions & 17 deletions dev/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ body {
line-height: 1.45em;
font-family: "Droid Serif", Georgia, serif;
color: #222;
width: 760px;
max-width: 760px;
margin: 4em auto;
padding: 0 1em;
}
Expand Down Expand Up @@ -199,7 +199,7 @@ p {

p, ul, ol, dl {
margin-bottom: 1em;
width: 520px;
max-width: 520px;
}

hr {
Expand Down Expand Up @@ -306,7 +306,7 @@ var > var::after {
(http://developers.whatwg.org/introduction.html#typographic-conventions)
*/
.note, .example, .XXX, .warning, pre {
width: 580px;
max-width: 580px;
}

.note {
Expand Down Expand Up @@ -353,11 +353,14 @@ var > var::after {
/* Header */

header#head {
position: relative;
display: flex;
--logo-width: 100px;
--logo-margin: 20px;
margin-left: calc(-1 * (var(--logo-width) + var(--logo-margin)));
}

header#head hgroup {
width: 580px;
flex: 1;
}

header#head h1 {
Expand Down Expand Up @@ -390,26 +393,18 @@ header#head h2 {
}

header#head .logo {
position: absolute;
left: -120px;
margin-right: var(--logo-margin);
}

/* Search bar */

#search {
position: absolute;
top: 0;
right: 0;
}

#search, #search input {
width: 150px;
}

#search ol {
z-index: 1;
position: absolute;
right: 0;
width: 25em;
list-style: none;
background-color: #eee;
Expand Down Expand Up @@ -521,6 +516,12 @@ html:not(.index) ol.toc ol {

/* RESPONSIVE STYLES */

@media screen and (max-width: 1000px) {
header#head {
margin-left: 0;
}
}

@media screen and (max-width: 767px) {
body {
font-size: 110%;
Expand All @@ -532,6 +533,7 @@ html:not(.index) ol.toc ol {

header#head {
text-align: center;
display: block;
}

header#head .logo {
Expand All @@ -550,7 +552,7 @@ html:not(.index) ol.toc ol {
}

.note, .example, .XXX, .warning, pre {
width: 560px;
max-width: 560px;
}

pre {
Expand All @@ -565,9 +567,14 @@ html:not(.index) ol.toc ol {
margin-left: 0.5em;
}

h2 .secno {
position: static;
display: inline;
}

.status {
left: auto;
right: -8.9em;
position: static;
margin: 0;
}

/* Search */
Expand Down Expand Up @@ -626,3 +633,60 @@ ul.domTree li:not(:last-child)::after {
content: '';
border-width: 0.1em;
}

/* SYNTAX HIGHLIGHTING */


/* for output from https://github.com/tabatkins/highlighter */
c-[a] { color: #990055 } /* Keyword.Declaration */
c-[b] { color: #990055 } /* Keyword.Type */
c-[c] { color: #708090 } /* Comment */
c-[d] { color: #708090 } /* Comment.Multiline */
c-[e] { color: #0077aa } /* Name.Attribute */
c-[f] { color: #669900 } /* Name.Tag */
c-[g] { color: #222222 } /* Name.Variable */
c-[k] { color: #990055 } /* Keyword */
c-[l] { color: #000000 } /* Literal */
c-[m] { color: #000000 } /* Literal.Number */
c-[n] { color: #0077aa } /* Name */
c-[o] { color: #999999 } /* Operator */
c-[p] { color: #999999 } /* Punctuation */
c-[s] { color: #a67f59 } /* Literal.String */
c-[t] { color: #a67f59 } /* Literal.String.Single */
c-[u] { color: #a67f59 } /* Literal.String.Double */
c-[cp] { color: #708090 } /* Comment.Preproc */
c-[c1] { color: #708090 } /* Comment.Single */
c-[cs] { color: #708090 } /* Comment.Special */
c-[kc] { color: #990055 } /* Keyword.Constant */
c-[kn] { color: #990055 } /* Keyword.Namespace */
c-[kp] { color: #990055 } /* Keyword.Pseudo */
c-[kr] { color: #990055 } /* Keyword.Reserved */
c-[ld] { color: #000000 } /* Literal.Date */
c-[nc] { color: #0077aa } /* Name.Class */
c-[no] { color: #0077aa } /* Name.Constant */
c-[nd] { color: #0077aa } /* Name.Decorator */
c-[ni] { color: #0077aa } /* Name.Entity */
c-[ne] { color: #0077aa } /* Name.Exception */
c-[nf] { color: #0077aa } /* Name.Function */
c-[nl] { color: #0077aa } /* Name.Label */
c-[nn] { color: #0077aa } /* Name.Namespace */
c-[py] { color: #0077aa } /* Name.Property */
c-[ow] { color: #999999 } /* Operator.Word */
c-[mb] { color: #000000 } /* Literal.Number.Bin */
c-[mf] { color: #000000 } /* Literal.Number.Float */
c-[mh] { color: #000000 } /* Literal.Number.Hex */
c-[mi] { color: #000000 } /* Literal.Number.Integer */
c-[mo] { color: #000000 } /* Literal.Number.Oct */
c-[sb] { color: #a67f59 } /* Literal.String.Backtick */
c-[sc] { color: #a67f59 } /* Literal.String.Char */
c-[sd] { color: #a67f59 } /* Literal.String.Doc */
c-[se] { color: #a67f59 } /* Literal.String.Escape */
c-[sh] { color: #a67f59 } /* Literal.String.Heredoc */
c-[si] { color: #a67f59 } /* Literal.String.Interpol */
c-[sx] { color: #a67f59 } /* Literal.String.Other */
c-[sr] { color: #a67f59 } /* Literal.String.Regex */
c-[ss] { color: #a67f59 } /* Literal.String.Symbol */
c-[vc] { color: #0077aa } /* Name.Variable.Class */
c-[vg] { color: #0077aa } /* Name.Variable.Global */
c-[vi] { color: #0077aa } /* Name.Variable.Instance */
c-[il] { color: #000000 } /* Literal.Number.Integer.Long */
23 changes: 23 additions & 0 deletions review-draft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -o errexit
set -o nounset

# This is based on a script named review.sh over at
# https://github.com/whatwg/whatwg.org/tree/master/resources.whatwg.org/build
#
# Please see https://github.com/whatwg/meta/blob/master/MAINTAINERS.md for information on creating
# and announcing Review Drafts.

INPUT="source"

mkdir -p "review-drafts"
REVIEW_DRAFT="review-drafts/$(date +'%Y-%m').wattsi"

# Note that %B in date is locale-specific. Let's hope for English.
sed -e 's/^ <title w-nodev>HTML Standard<\/title>$/ <title w-nodev>HTML Standard Review Draft '"$(date +'%B %Y')"'<\/title>/' \
-e 's/^ <h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft &mdash; Published <span class="pubdate">\[DATE: 01 Jan 1901\]<\/span><\/h2>$/ <h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft \&mdash; Published '"$(date +'%d %B %Y')"'<\/h2>/' \
-e 's/<span class="pubyear">\[DATE: 1901\]<\/span>/'"$(date +'%Y')"'/' \
< "$INPUT" > "$REVIEW_DRAFT"
echo "Created Review Draft at $REVIEW_DRAFT"
echo "Please verify that only three lines changed relative to $INPUT:"
diff -up "$INPUT" "$REVIEW_DRAFT" || exit 0
Loading