Skip to content

Commit 561c0ef

Browse files
committed
chore: add purple boxes
1 parent 828969f commit 561c0ef

File tree

1 file changed

+63
-22
lines changed

1 file changed

+63
-22
lines changed

index.html

Lines changed: 63 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@
4646
errata: "https://w3c.github.io/geolocation-api/errata.html",
4747
};
4848
</script>
49+
<style>
50+
* {
51+
counter-reset: addition correction;
52+
}
53+
.addition::before {
54+
content: "Candidate Addition:";
55+
counter-increment: addition;
56+
}
57+
.correction::before {
58+
content: "Candidate Correction:";
59+
counter-increment: correction;
60+
}
61+
</style>
4962
</head>
5063
<body data-cite=
5164
"secure-contexts permissions-policy permissions hr-time html">
@@ -71,7 +84,15 @@
7184
"updateableRecFilter"></rs-changelog>
7285
<p>
7386
A more detailed list of changes can be found in section
74-
[[[#changelog]]].
87+
[[[#changelog]]]. Reviewers of the document can identify candidate
88+
additions and/or corrections by their distinctive styling in the
89+
document:
90+
</p>
91+
<p class="correction">
92+
Candidate corrections are marked like this.
93+
</p>
94+
<p class="addition">
95+
Candidate additions are marked like this.
7596
</p>
7697
</section>
7798
<section id="introduction" class="informative">
@@ -1010,6 +1031,15 @@ <h3>
10101031
geographic position of the device was acquired.
10111032
</p>
10121033
</section>
1034+
<section class="addition">
1035+
<h3>
1036+
`toJSON()` method
1037+
</h3>
1038+
<p>
1039+
The <dfn>toJSON()</dfn> method returns a JSON representation of the
1040+
{{GeolocationPosition}} object.
1041+
</p>
1042+
</section>
10131043
<section>
10141044
<h2>
10151045
Internal slots
@@ -1079,7 +1109,7 @@ <h2>
10791109
<h4>
10801110
`latitude`, `longitude`, and `accuracy` attributes
10811111
</h4>
1082-
<p>
1112+
<p class="correction">
10831113
The <dfn>latitude</dfn> and <dfn>longitude</dfn> attributes denote
10841114
the position, specified as a real number of degrees, in the [[WGS84]]
10851115
coordinate system.
@@ -1122,6 +1152,15 @@ <h4>
11221152
meters per second.
11231153
</p>
11241154
</section>
1155+
<section class="addition">
1156+
<h4>
1157+
`toJSON()` method
1158+
</h4>
1159+
<p>
1160+
The <dfn>toJSON()</dfn> method returns a JSON representation of the
1161+
{{GeolocationCoordinates}} object.
1162+
</p>
1163+
</section>
11251164
<section>
11261165
<h2>
11271166
Constructing a `GeolocationPosition`
@@ -1135,23 +1174,25 @@ <h2>
11351174
<li>Let |coords:GeolocationCoordinates| be a newly created
11361175
{{GeolocationCoordinates}} instance:
11371176
<ol>
1138-
<li>Initialize |coord|'s {{GeolocationCoordinates/latitude}}
1139-
attribute to a latitude, specified as a real number of degrees,
1140-
in the [[WGS84]] coordinate system.
1177+
<li class="correction">Initialize |coord|'s
1178+
{{GeolocationCoordinates/latitude}} attribute to a latitude,
1179+
specified as a real number of degrees, in the [[WGS84]]
1180+
coordinate system.
11411181
</li>
1142-
<li>Initialize |coord|'s {{GeolocationCoordinates/longitude}}
1143-
attribute to a longitude, specified as a real number of degrees,
1144-
in the [[WGS84]] coordinate system.
1182+
<li class="correction">Initialize |coord|'s
1183+
{{GeolocationCoordinates/longitude}} attribute to a longitude,
1184+
specified as a real number of degrees, in the [[WGS84]]
1185+
coordinate system.
11451186
</li>
11461187
<li>Initialize |coord|'s {{GeolocationCoordinates/accuracy}}
11471188
attribute to a non-negative real number. The value SHOULD
11481189
correspond to a 95% confidence level with respect to the
11491190
longitude and latitude values.
11501191
</li>
1151-
<li>Initialize |coord|'s {{GeolocationCoordinates/altitude}}
1152-
attribute to a height, in meters, above the [[WGS84]] ellipsoid,
1153-
or `null` if the implementation cannot provide altitude
1154-
information.
1192+
<li class="correction">Initialize |coord|'s
1193+
{{GeolocationCoordinates/altitude}} attribute to a height, in
1194+
meters, above the [[WGS84]] ellipsoid, or `null` if the
1195+
implementation cannot provide altitude information.
11551196
</li>
11561197
<li>Initialize |coord|'s
11571198
{{GeolocationCoordinates/altitudeAccuracy}} attribute as
@@ -1160,17 +1201,17 @@ <h2>
11601201
information is provided, it SHOULD correspond to a 95% confidence
11611202
level.
11621203
</li>
1163-
<li>Initialize |coord|'s {{GeolocationCoordinates/speed}}
1164-
attribute to a speed, as a non-negative real number of meters per
1165-
second, or as `null` if the implementation cannot provide speed
1166-
information.
1204+
<li class="correction">Initialize |coord|'s
1205+
{{GeolocationCoordinates/speed}} attribute to a speed, as a
1206+
non-negative real number of meters per second, or as `null` if
1207+
the implementation cannot provide speed information.
11671208
</li>
1168-
<li>Initialize |coord|'s {{GeolocationCoordinates/heading}}
1169-
attribute to a heading, in degrees, or `null` if the
1170-
implementation cannot provide heading information. If the hosting
1171-
device is stationary (i.e., the value of the
1172-
{{GeolocationCoordinates/speed}} attribute is 0), then initialize
1173-
the {{GeolocationCoordinates/heading}} to `NaN`.
1209+
<li class="correction">Initialize |coord|'s
1210+
{{GeolocationCoordinates/heading}} attribute to a heading, in
1211+
degrees, or `null` if the implementation cannot provide heading
1212+
information. If the hosting device is stationary (i.e., the value
1213+
of the {{GeolocationCoordinates/speed}} attribute is 0), then
1214+
initialize the {{GeolocationCoordinates/heading}} to `NaN`.
11741215
</li>
11751216
</ol>
11761217
</li>

0 commit comments

Comments
 (0)