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

Comment out ellipsis in code blocks #18435

Merged
merged 3 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions files/en-us/web/api/performance/getentries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ None.

```js
function use_PerformanceEntry_methods() {
console.log("PerformanceEntry tests ...");
console.log("PerformanceEntry tests");

if (performance.mark === undefined) {
console.log("... performance.mark Not supported");
console.error("The property performance.mark is not supported");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/performance/getentriesbyname/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ A list of {{domxref("PerformanceEntry")}} objects that have the specified

```js
function use_PerformanceEntry_methods() {
log("PerformanceEntry tests ...");
console.log("PerformanceEntry tests");

if (performance.mark === undefined) {
log("... performance.mark Not supported");
console.error("The property performance.mark is not supported.");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/performance/getentriesbytype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ A list of {{domxref("PerformanceEntry")}} objects that have the specified

```js
function usePerformanceEntryMethods() {
log("PerformanceEntry tests ...");
console.log("PerformanceEntry tests");

if (performance.mark === undefined) {
log("... performance.mark Not supported");
console.error("The property performance.mark is not supported.");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/performance/now/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ performance.now();
// 8781416
// 8781815
// 8782206
// ...
//

// reduced time precision with `privacy.resistFingerprinting` enabled
performance.now();
// 8865400
// 8866200
// 8866700
// ...
//
```

In Firefox, you can also enable `privacy.resistFingerprinting` — this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function setResourceTimingBufferSize(maxSize) {
}
const supported = typeof performance.setResourceTimingBufferSize == "function";
if (supported) {
log("... Performance.setResourceTimingBufferSize() = Yes");
console.log(" Performance.setResourceTimingBufferSize() = Yes");
performance.setResourceTimingBufferSize(maxSize);
} else {
log("... Performance.setResourceTimingBufferSize() = NOT supported");
console.error("The method Performance.setResourceTimingBufferSize() is not supported.");
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function print_perf_entry(pe) {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you transform the log( on line 28 into a console.log(? Thank you!

function print_PerformanceEntries() {
if (performance.mark === undefined) {
log("... performance.mark Not supported");
console.error("The property performance.mark is not supported.");
return;
}

Expand Down Expand Up @@ -92,12 +92,12 @@ function print_PerformanceEntry(ev) {
log("PerfEntry[" + i + "]");
for (let j=0; j < properties.length; j++) {
// check each property in window.performance
var supported = properties[j] in p[i];
const supported = properties[j] in p[i];
if (supported) {
var pe = p[i];
log("... " + properties[j] + " = " + pe[properties[j]]);
const pe = p[i];
console.log(" " + properties[j] + " = " + pe[properties[j]]);
} else {
log("... " + properties[j] + " = Not supported");
console.log(" " + properties[j] + " = Not supported");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/performanceentry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ function printPerformanceEntry(entry) {
for (const prop of properties) {
// Check each property
if (prop in entry) {
output.textContent += `... ${prop} = ${entry[prop]} \n`;
output.textContent += ` ${prop} = ${entry[prop]} \n`;
} else {
output.textContent += `... ${prop} is NOT supported \n`;
output.textContent += ` ${prop} is NOT supported \n`;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ observer.observe({entryTypes: ["mark", "frame"]});

function perf_observer(list, observer) {
// Process the "measure" event
// ...
//
// Disable additional performance events
observer.disconnect();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ function print_start_and_end_properties(perfEntry) {

for (var i=0; i < properties.length; i++) {
// check each property
var supported = properties[i] in perfEntry;
const supported = properties[i] in perfEntry;
const value = perfEntry[properties[i]];
if (supported) {
var value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ function print_start_and_end_properties(perfEntry) {

for (var i=0; i < properties.length; i++) {
// check each property
var supported = properties[i] in perfEntry;
const supported = properties[i] in perfEntry;
const value = perfEntry[properties[i]];
if (supported) {
var value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ function print_start_and_end_properties(perfEntry) {
// check each property
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log(" " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function print_initiatorType(perfEntry) {
// Print this performance entry object's initiatorType value
const value = "initiatorType" in perfEntry;
if (value)
console.log("... initiatorType = " + perfEntry.initiatorType);
console.log(" initiatorType = " + perfEntry.initiatorType);
else
console.log("... initiatorType = NOT supported");
console.log(" initiatorType = NOT supported");
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function print_start_and_end_properties(perfEntry) {
// check each property
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log(" " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ function print_start_and_end_properties(perfEntry) {

for (let i=0; i < properties.length; i++) {
// check each property
const value = perfEntry[properties[i]];
if (properties[i] in perfEntry) {
const value = perfEntry[properties[i]];
console.log("... " + properties[i] + " = " + value);
console.log("… " + properties[i] + " = " + value);
} else {
console.log("... " + properties[i] + " = NOT supported");
console.log(" " + properties[i] + " = NOT supported");
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions files/en-us/web/api/pointer_events/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ This example registers a handler for every event type for the given element.
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
<div id="target"> Touch me </div>
</body>
</html>
```
Expand Down Expand Up @@ -234,7 +234,7 @@ This example illustrates accessing all of a pointer event's properties.
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
<div id="target"> Touch me </div>
</body>
</html>
```
Expand Down Expand Up @@ -287,7 +287,7 @@ The following example shows pointer capture being set on an element.
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
<div id="target"> Touch me </div>
</body>
</html>
```
Expand Down Expand Up @@ -317,7 +317,7 @@ The following example shows a pointer capture being released (when a {{domxref("
}
</script>
<body onload="init();">
<div id="target"> Touch me ... </div>
<div id="target"> Touch me </div>
</body>
</html>
```
Expand All @@ -333,7 +333,7 @@ In the following example, the browser's default touch behavior is disabled for t
```html
<html>
<body>
<div style="touch-action:none;">Can't touch this ... </div>
<div style="touch-action:none;">Can't touch this </div>
</body>
</html>
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/processinginstruction/sheet/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A string containing the name of the associated stylesheet, or `null` if there ar
```html
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rule.css"?>
...
```

The `sheet` property of the processing instruction will return `rule.css`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let observer = new ReportingObserver(function(reports, observer) {

observer.observe()

// ...
//

let records = observer.takeRecords();
console.log(records);
Expand Down
Loading