diff --git a/files/en-us/learn_web_development/extensions/server-side/node_server_without_framework/index.md b/files/en-us/learn_web_development/extensions/server-side/node_server_without_framework/index.md index a95e9de9387f0d4..7420af1786e5879 100644 --- a/files/en-us/learn_web_development/extensions/server-side/node_server_without_framework/index.md +++ b/files/en-us/learn_web_development/extensions/server-side/node_server_without_framework/index.md @@ -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); diff --git a/files/en-us/mozilla/add-ons/webextensions/manifest.json/commands/index.md b/files/en-us/mozilla/add-ons/webextensions/manifest.json/commands/index.md index b9991f7dc13ae53..2d05e65ede7c482 100644 --- a/files/en-us/mozilla/add-ons/webextensions/manifest.json/commands/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/manifest.json/commands/index.md @@ -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 diff --git a/files/en-us/web/api/document_object_model/index.md b/files/en-us/web/api/document_object_model/index.md index 5467f1b64c027f0..0dff6dddc61423c 100644 --- a/files/en-us/web/api/document_object_model/index.md +++ b/files/en-us/web/api/document_object_model/index.md @@ -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 = ""; }); @@ -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" @@ -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); }); ``` diff --git a/files/en-us/web/api/fullscreen_api/index.md b/files/en-us/web/api/fullscreen_api/index.md index bb84f88003b1c4d..3a9b63bf688cd58 100644 --- a/files/en-us/web/api/fullscreen_api/index.md +++ b/files/en-us/web/api/fullscreen_api/index.md @@ -7,7 +7,6 @@ browser-compat: - api.Document.fullscreenEnabled - api.Document.exitFullscreen - api.Element.requestFullscreen - - api.Document.fullscreen --- {{DefaultAPISidebar("Fullscreen API")}} diff --git a/files/en-us/web/api/html_dom_api/index.md b/files/en-us/web/api/html_dom_api/index.md index e8a9cc802f890ad..59a3b5d7e0f17b0 100644 --- a/files/en-us/web/api/html_dom_api/index.md +++ b/files/en-us/web/api/html_dom_api/index.md @@ -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 diff --git a/files/en-us/web/api/websockets_api/index.md b/files/en-us/web/api/websockets_api/index.md index 93845643de6d20c..c59b4ca03417366 100644 --- a/files/en-us/web/api/websockets_api/index.md +++ b/files/en-us/web/api/websockets_api/index.md @@ -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: