Skip to content

Commit cf9b0ad

Browse files
committed
Add [CEReactions] annotations
This is part of the effort in WICG/webcomponents#186 to annotate all parts of the platform that cause DOM mutations and thus need to set up state for custom element reactions. [CEReactions] is defined in https://html.spec.whatwg.org/multipage/scripting.html#cereactions. Also normalizes whitespace to spaces instead of a mix of spaces and tabs.
1 parent 794bad2 commit cf9b0ad

File tree

1 file changed

+115
-115
lines changed

1 file changed

+115
-115
lines changed

index.html

Lines changed: 115 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -3,76 +3,76 @@
33
<head>
44
<meta charset=UTF-8>
55
<title>DOM Parsing and Serialization</title>
6-
<style>
7-
/* Make these stand-out more... */
8-
.externalDFN {
9-
font-style: italic;
10-
background-color: #fff9d6;
11-
}
12-
/* Switch statement */
13-
dl.switch dt::before {
14-
content: "↪ ";
15-
margin-left: 1em;
16-
}
17-
/* Better spacing around various lists (implied paragraph children) */
18-
ol > li, section:not(#toc) ul > li, section dl > dt {
19-
margin: 1em 0;
6+
<style>
7+
/* Make these stand-out more... */
8+
.externalDFN {
9+
font-style: italic;
10+
background-color: #fff9d6;
11+
}
12+
/* Switch statement */
13+
dl.switch dt::before {
14+
content: "↪ ";
15+
margin-left: 1em;
16+
}
17+
/* Better spacing around various lists (implied paragraph children) */
18+
ol > li, section:not(#toc) ul > li, section dl > dt {
19+
margin: 1em 0;
20+
}
21+
var { color: maroon; }
22+
/* domintro styling */
23+
dl.domintro {
24+
background-color: rgb(221, 255, 221);
25+
padding: 1em 0.5em 1em 2em;
26+
clear: both;
27+
}
28+
dl.domintro dt {
29+
color: black;
30+
}
31+
dl.domintro > dd {
32+
color: green;
33+
}
34+
dl.domintro::before {
35+
float: right;
36+
background-color: white;
37+
display: block;
38+
border: 2px solid black;
39+
color: green;
40+
margin-top: -20px;
41+
padding: 2px;
42+
content: "This box is non-normative. Implementation requirements are given below this box.";
43+
}
44+
/* Fancy table stuff */
45+
table {
46+
border-collapse: collapse;
47+
}
48+
thead tr {
49+
border-bottom: 2px solid black;
50+
}
51+
tbody tr:not(:last-child) {
52+
border-bottom: 1px solid black;
53+
}
54+
td {
55+
border-left: 1px solid black;
56+
padding: 4px;
57+
}
58+
/* Extra IDL :-) */
59+
.extraidl {
60+
line-height: 120%;
61+
padding: 1em;
62+
border-top: 1px solid #90b8de;
63+
border-bottom: 1px solid #90b8de;
64+
}
65+
.extraidl:before {
66+
width: 150px;
67+
color: #fff;
68+
padding: 3px;
69+
font-weight: bold;
70+
font-family: initial;
71+
margin: -1em 0 1em -1em;
72+
display: block;
73+
content: "WebIDL";
74+
background-color: rgb(144, 184, 222);
2075
}
21-
var { color: maroon; }
22-
/* domintro styling */
23-
dl.domintro {
24-
background-color: rgb(221, 255, 221);
25-
padding: 1em 0.5em 1em 2em;
26-
clear: both;
27-
}
28-
dl.domintro dt {
29-
color: black;
30-
}
31-
dl.domintro > dd {
32-
color: green;
33-
}
34-
dl.domintro::before {
35-
float: right;
36-
background-color: white;
37-
display: block;
38-
border: 2px solid black;
39-
color: green;
40-
margin-top: -20px;
41-
padding: 2px;
42-
content: "This box is non-normative. Implementation requirements are given below this box.";
43-
}
44-
/* Fancy table stuff */
45-
table {
46-
border-collapse: collapse;
47-
}
48-
thead tr {
49-
border-bottom: 2px solid black;
50-
}
51-
tbody tr:not(:last-child) {
52-
border-bottom: 1px solid black;
53-
}
54-
td {
55-
border-left: 1px solid black;
56-
padding: 4px;
57-
}
58-
/* Extra IDL :-) */
59-
.extraidl {
60-
line-height: 120%;
61-
padding: 1em;
62-
border-top: 1px solid #90b8de;
63-
border-bottom: 1px solid #90b8de;
64-
}
65-
.extraidl:before {
66-
width: 150px;
67-
color: #fff;
68-
padding: 3px;
69-
font-weight: bold;
70-
font-family: initial;
71-
margin: -1em 0 1em -1em;
72-
display: block;
73-
content: "WebIDL";
74-
background-color: rgb(144, 184, 222);
75-
}
7676
</style>
7777
<script type="text/javascript" src='https://www.w3.org/Tools/respec/respec-w3c-common' class='remove' async></script>
7878
<script type="text/javascript" src="respecConfig.js" class='remove'></script>
@@ -94,14 +94,14 @@
9494

9595
<section id="crec" class="introductory">
9696
<h2>Candidate Recommendation Exit Criteria</h2>
97-
<p>This specification will not advance to Proposed Recommendation before the spec's
98-
<a href="http://w3c-test.org/domparsing/">test suite</a> is completed and two or
99-
more independent implementations pass each test, although no single implementation
97+
<p>This specification will not advance to Proposed Recommendation before the spec's
98+
<a href="http://w3c-test.org/domparsing/">test suite</a> is completed and two or
99+
more independent implementations pass each test, although no single implementation
100100
must pass each test. We expect to meet this criteria no sooner than 24 October 2014.
101-
The group will also create an
101+
The group will also create an
102102
<a href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/implementationReport.html">Implementation Report</a>.
103103
</section>
104-
104+
105105
<!-- <section id="issues" class="introductory">
106106
<h1>Issues</h1>
107107
@@ -1023,9 +1023,9 @@ <h1>The <code>DOMParser</code> interface</h1>
10231023
<p>The <dfn title="dom-domparser"><code>DOMParser()</code></dfn> constructor
10241024
must return a new <code>DOMParser</code> object.
10251025

1026-
<dl class="idl" title="[Constructor] interface DOMParser">
1027-
<dt>[NewObject] Document parseFromString(DOMString str, SupportedType type)</dt>
1028-
<dd>
1026+
<dl class="idl" title="[Constructor] interface DOMParser">
1027+
<dt>[CEReactions, NewObject] Document parseFromString(DOMString str, SupportedType type)</dt>
1028+
<dd>
10291029
<p>The
10301030
<dfn title="dom-domparser-parsefromstring"><code>parseFromString(<var>str</var>, <var>type</var>)</code></dfn>
10311031
method must run these steps, depending on <var>type</var>:
@@ -1111,8 +1111,8 @@ <h1>The <code>DOMParser</code> interface</h1>
11111111
<p class=note>The returned
11121112
<a title="concept-document" data-spec="DOM4" class="externalDFN">document</a>'s
11131113
<a title="concept-document-encoding" data-spec="DOM4" class="externalDFN">encoding</a> is
1114-
the default, UTF-8.
1115-
</dd>
1114+
the default, UTF-8.
1115+
</dd>
11161116
</dl>
11171117
</section>
11181118

@@ -1122,21 +1122,21 @@ <h1>The <code>XMLSerializer</code> interface</h1>
11221122
<p>The <dfn title="dom-xmlserializer"><code>XMLSerializer()</code></dfn>
11231123
constructor must return a new <code>XMLSerializer</code> object.
11241124

1125-
<dl class="idl" title="[Constructor] interface XMLSerializer">
1126-
<dt>DOMString serializeToString(Node root)</dt>
1127-
1125+
<dl class="idl" title="[Constructor] interface XMLSerializer">
1126+
<dt>DOMString serializeToString(Node root)</dt>
1127+
11281128
<dd>The <dfn title="dom-xmlserializer-serializetostring"><code>serializeToString(<var>root</var>)</code></dfn>
11291129
method must <a title="concept-serialize-xml">produce an XML serialization</a> of <var>root</var> passing
1130-
a value of <code>false</code> for the <a title="concept-well-formed">require well-formed</a> parameter, and return the result.</dd>
1130+
a value of <code>false</code> for the <a title="concept-well-formed">require well-formed</a> parameter, and return the result.</dd>
11311131
</dl>
11321132
</section>
11331133

11341134
<section>
11351135
<h1>Extensions to the <code><a title="element" data-spec="DOM4" class="externalDFN">Element</a></code> interface</h1>
11361136

1137-
<dl class="idl" title="partial interface Element">
1138-
<dt>[TreatNullAs=EmptyString] attribute DOMString innerHTML</dt>
1139-
<dd>
1137+
<dl class="idl" title="partial interface Element">
1138+
<dt>[CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML</dt>
1139+
<dd>
11401140
<p>The <dfn title="dom-element-innerhtml"><code>innerHTML</code></dfn> IDL
11411141
attribute represents the markup of the
11421142
<code><a title="element" data-spec="DOM4" class="externalDFN">Element</a></code>'s contents.
@@ -1195,12 +1195,12 @@ <h1>Extensions to the <code><a title="element" data-spec="DOM4" class="externalD
11951195

11961196
<li><a data-spec="DOM4" title="concept-node-replace-all" class="externalDFN">Replace all</a>
11971197
with <var>fragment</var> within the <a title="context object">context object</a>.
1198-
</ol>
1199-
</dd>
1200-
1201-
<!-- outerHTML -->
1202-
<dt>[TreatNullAs=EmptyString] attribute DOMString outerHTML</dt>
1203-
<dd>
1198+
</ol>
1199+
</dd>
1200+
1201+
<!-- outerHTML -->
1202+
<dt>[CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML</dt>
1203+
<dd>
12041204
<p>The <dfn title="dom-element-outerhtml"><code>outerHTML</code></dfn> IDL
12051205
attribute represents the markup of the
12061206
<code><a title="element" data-spec="DOM4" class="externalDFN">Element</a></code> and its contents.
@@ -1278,12 +1278,12 @@ <h1>Extensions to the <code><a title="element" data-spec="DOM4" class="externalD
12781278
the <a title="context object">context object</a> with <var>fragment</var> within
12791279
the <a title="context object">context object</a>'s
12801280
<a data-spec="DOM4" title="concept-tree-parent" class="externalDFN">parent</a>.
1281-
</ol>
1282-
</dd>
1283-
1284-
<!-- insertAdjacentHTML -->
1285-
<dt>void insertAdjacentHTML(DOMString position, DOMString text)</dt>
1286-
<dd>
1281+
</ol>
1282+
</dd>
1283+
1284+
<!-- insertAdjacentHTML -->
1285+
<dt>[CEReactions] void insertAdjacentHTML(DOMString position, DOMString text)</dt>
1286+
<dd>
12871287
<dl class=domintro>
12881288
<dt><var>element</var> . <code title="dom-element-insertadjacenthtml">insertAdjacentHTML</code>(<var>position</var>, <var>text</var>)
12891289

@@ -1436,9 +1436,9 @@ <h1>Extensions to the <code><a title="element" data-spec="DOM4" class="externalD
14361436
before the <a title="context object">context object</a>'s
14371437
<a data-spec="DOM4" title="concept-tree-next-sibling" class="externalDFN">next sibling</a>.
14381438
</dl>
1439-
</ol>
1440-
</dd>
1441-
1439+
</ol>
1440+
</dd>
1441+
14421442
</dl>
14431443
</section>
14441444

@@ -1448,9 +1448,9 @@ <h1>Extensions to the <code><a title="element" data-spec="DOM4" class="externalD
14481448
<section>
14491449
<h1>Extensions to the <code><a title="text" data-spec="DOM4" class="externalDFN">Text</a></code> interface</h1>
14501450
1451-
<dl class="idl" title="partial interface Text">
1452-
<dt>attribute boolean serializeAsCDATA</dt>
1453-
<dd>
1451+
<dl class="idl" title="partial interface Text">
1452+
<dt>attribute boolean serializeAsCDATA</dt>
1453+
<dd>
14541454
<dl class=domintro>
14551455
<dt><var>text</var> .
14561456
<code title="dom-text-serializeascdata">serializeAsCDATA</code> [ = <var>value</var> ]
@@ -1468,18 +1468,18 @@ <h1>Extensions to the <code><a title="text" data-spec="DOM4" class="externalDFN"
14681468
<p>Setting the <code title="dom-text-serializeascdata">serializeAsCDATA</code>
14691469
attribute must, if the new value is true, set the
14701470
<a title="context object">context object</a>'s <a>serialize as CDATA flag</a>, or unset
1471-
it otherwise.
1472-
</dd>
1471+
it otherwise.
1472+
</dd>
14731473
</dl>
14741474
</section>
14751475
-->
14761476

14771477
<section>
14781478
<h1>Extensions to the <code><a data-spec="DOM4" title="range" class="externalDFN">Range</a></code> interface</h1>
14791479

1480-
<dl class="idl" title="partial interface Range">
1481-
<dt>[NewObject] DocumentFragment createContextualFragment(DOMString fragment)</dt>
1482-
<dd>
1480+
<dl class="idl" title="partial interface Range">
1481+
<dt>[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment)</dt>
1482+
<dd>
14831483
<dl class=domintro>
14841484
<dt><var>docFragment</var> = <var>range</var> . <code title="dom-range-createcontextualfragment">createContextualFragment</code>(<var>markupString</var>)
14851485
<dd>Returns a <code><a title="documentfragment" data-spec="DOM4" class="externalDFN">DocumentFragment</a></code>, created
@@ -1554,18 +1554,18 @@ <h1>Extensions to the <code><a data-spec="DOM4" title="range" class="externalDFN
15541554

15551555
<li>Return the value of <var>fragment node</var>.
15561556
</ol>
1557-
</dd>
1557+
</dd>
15581558
</dl>
15591559
</section>
15601560

15611561
<section class="appendix">
15621562
<h1>Revision History</h1>
1563-
<p>The following is an informative summary of the changes since the last publication of this
1564-
specification. A complete revision history of the Editor's Drafts of this specification
1563+
<p>The following is an informative summary of the changes since the last publication of this
1564+
specification. A complete revision history of the Editor's Drafts of this specification
15651565
can be found <a href="https://dvcs.w3.org/hg/innerhtml/summary/">here</a>.</p>
1566-
1566+
15671567
<ul>
1568-
<li><a href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/LC2_comments.html">Incorporated
1568+
<li><a href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/LC2_comments.html">Incorporated
15691569
non-normative changes from previous Last Call document.</a>
15701570
</ul>
15711571
</section>
@@ -1613,4 +1613,4 @@ <h1>Acknowledgements</h1>
16131613
} catch (ex) { alert(ex); }
16141614
</script>
16151615
</body>
1616-
</html>
1616+
</html>

0 commit comments

Comments
 (0)