Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const STATIC_PATH = path.join(process.cwd(), "./static");
const toBool = [() => true, () => false];

const prepareFile = async (url) => {
const paths = [STATIC_PATH, url];
const urlAsPath = decodeURI(url);
const paths = [STATIC_PATH, urlAsPath];
if (url.endsWith("/")) paths.push("index.html");
const filePath = path.join(...paths);
const pathTraversal = !filePath.startsWith(STATIC_PATH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ In Firefox, your extension can update shortcut key settings using {{WebExtAPIRef

In Chrome, extensions can't programmatically update shortcut keys. Users can change shortcuts at `chrome://extensions/shortcuts`, which can be opened using {{WebExtAPIRef("tabs.create()")}}.

Safari doesn't support programmatic or user modification of extension shortcut keys.
Safari doesn't support programmatic modification of extension shortcut keys. From Safari 26, users can change an extension's shortcuts in Safari's extensions settings.

## Example

Expand Down
14 changes: 7 additions & 7 deletions files/en-us/web/api/document_object_model/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ button {
#### JavaScript

```js
const story = document.body.querySelector(".story");
const story = document.querySelector(".story");

const setText = document.body.querySelector("#set-text");
const setText = document.querySelector("#set-text");
setText.addEventListener("click", () => {
story.textContent = "It was a dark and stormy night...";
});

const clearText = document.body.querySelector("#clear-text");
const clearText = document.querySelector("#clear-text");
clearText.addEventListener("click", () => {
story.textContent = "";
});
Expand Down Expand Up @@ -401,9 +401,9 @@ div.child {
#### JavaScript

```js
const parent = document.body.querySelector(".parent");
const parent = document.querySelector(".parent");

const addChild = document.body.querySelector("#add-child");
const addChild = document.querySelector("#add-child");
addChild.addEventListener("click", () => {
// Only add a child if we don't already have one
// in addition to the text node "parent"
Expand All @@ -416,9 +416,9 @@ addChild.addEventListener("click", () => {
parent.appendChild(child);
});

const removeChild = document.body.querySelector("#remove-child");
const removeChild = document.querySelector("#remove-child");
removeChild.addEventListener("click", () => {
const child = document.body.querySelector(".child");
const child = document.querySelector(".child");
parent.removeChild(child);
});
```
Expand Down
1 change: 0 additions & 1 deletion files/en-us/web/api/fullscreen_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ browser-compat:
- api.Document.fullscreenEnabled
- api.Document.exitFullscreen
- api.Element.requestFullscreen
- api.Document.fullscreen
---

{{DefaultAPISidebar("Fullscreen API")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/html_dom_api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: The HTML DOM API
title: HTML DOM API
slug: Web/API/HTML_DOM_API
page-type: web-api-overview
browser-compat: api.HTMLElement
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websockets_api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: The WebSocket API (WebSockets)
title: WebSocket API (WebSockets)
slug: Web/API/WebSockets_API
page-type: web-api-overview
browser-compat:
Expand Down