Skip to content

Commit

Permalink
Merge branch 'main' into brian-learn-move
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Nov 28, 2024
2 parents a94657a + e6e9826 commit f502c8a
Show file tree
Hide file tree
Showing 32 changed files with 2,277 additions and 141 deletions.
9 changes: 5 additions & 4 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@
/en-US/docs/DOM/window.toolbar /en-US/docs/Web/API/Window/toolbar
/en-US/docs/DOM/window.top /en-US/docs/Web/API/Window/top
/en-US/docs/DOM/window.unescape /en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
/en-US/docs/DOM/window.updateCommands /en-US/docs/Web/API/Window/updateCommands
/en-US/docs/DOM/window.updateCommands /en-US/docs/Web/API/Window
/en-US/docs/DOM/window.window /en-US/docs/Web/API/Window/window
/en-US/docs/DOM:CDATASection /en-US/docs/Web/API/CDATASection
/en-US/docs/DOM:CSS /en-US/docs/Web/CSS/Reference
Expand Down Expand Up @@ -2652,7 +2652,7 @@
/en-US/docs/DOM:window.toolbar /en-US/docs/Web/API/Window/toolbar
/en-US/docs/DOM:window.top /en-US/docs/Web/API/Window/top
/en-US/docs/DOM:window.unescape /en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
/en-US/docs/DOM:window.updateCommands /en-US/docs/Web/API/Window/updateCommands
/en-US/docs/DOM:window.updateCommands /en-US/docs/Web/API/Window
/en-US/docs/DOM:window.window /en-US/docs/Web/API/Window/window
/en-US/docs/DOMParser /en-US/docs/Web/API/DOMParser
/en-US/docs/DOMTokenList.supports() /en-US/docs/Web/API/DOMTokenList/supports
Expand Down Expand Up @@ -3369,7 +3369,7 @@
/en-US/docs/Document_Object_Model_(DOM)/window.statusbar /en-US/docs/Web/API/Window/statusbar
/en-US/docs/Document_Object_Model_(DOM)/window.toolbar /en-US/docs/Web/API/Window/toolbar
/en-US/docs/Document_Object_Model_(DOM)/window.unescape /en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
/en-US/docs/Document_Object_Model_(DOM)/window.updateCommands /en-US/docs/Web/API/Window/updateCommands
/en-US/docs/Document_Object_Model_(DOM)/window.updateCommands /en-US/docs/Web/API/Window
/en-US/docs/Document_Object_Model_(DOM)/window.window /en-US/docs/Web/API/Window/window
/en-US/docs/Domain_name /en-US/docs/Glossary/Domain_name
/en-US/docs/DragDrop /en-US/docs/Web/API/HTML_Drag_and_Drop_API
Expand Down Expand Up @@ -10599,6 +10599,7 @@
/en-US/docs/Web/API/Window/transitionend_event /en-US/docs/Web/API/Element/transitionend_event
/en-US/docs/Web/API/Window/transitionrun_event /en-US/docs/Web/API/Element/transitionrun_event
/en-US/docs/Web/API/Window/transitionstart_event /en-US/docs/Web/API/Element/transitionstart_event
/en-US/docs/Web/API/Window/updateCommands /en-US/docs/Web/API/Window
/en-US/docs/Web/API/Window/vrdisplayblur_event /en-US/docs/Web/API/Window
/en-US/docs/Web/API/Window/vrdisplayfocus_event /en-US/docs/Web/API/Window
/en-US/docs/Web/API/Window/vrdisplaypointerrestricted_event /en-US/docs/Web/API/Window
Expand Down Expand Up @@ -11327,7 +11328,7 @@
/en-US/docs/Web/API/window.toolbar /en-US/docs/Web/API/Window/toolbar
/en-US/docs/Web/API/window.top /en-US/docs/Web/API/Window/top
/en-US/docs/Web/API/window.unescape /en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
/en-US/docs/Web/API/window.updateCommands /en-US/docs/Web/API/Window/updateCommands
/en-US/docs/Web/API/window.updateCommands /en-US/docs/Web/API/Window
/en-US/docs/Web/API/window.window /en-US/docs/Web/API/Window/window
/en-US/docs/Web/API/window/onscroll /en-US/docs/Web/API/Element/scroll_event
/en-US/docs/Web/API/window/onscroll-temp /en-US/docs/Web/API/Element/scroll_event
Expand Down
17 changes: 0 additions & 17 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -68925,23 +68925,6 @@
"louisremi"
]
},
"Web/API/Window/updateCommands": {
"modified": "2020-10-15T21:15:49.672Z",
"contributors": [
"mfuji09",
"lucian95",
"SphinxKnight",
"forivall",
"fscholz",
"MHasan",
"teoli",
"iamanupmenon",
"utkarsh_shah",
"Sheppy",
"Mgjbot",
"Maian"
]
},
"Web/API/Window/visualViewport": {
"modified": "2020-10-15T21:57:59.692Z",
"contributors": ["chrisdavidmills", "connorshea", "jpmedley"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ browser-compat: webextensions.api.browsingData.removeCache

Clears the browser's cache.

Note that although this function can take a {{WebExtAPIRef("browsingData.RemovalOptions")}} object, it will be ignored. The entire cache is always cleared when using this function.
Note that this function requires a {{WebExtAPIRef("browsingData.RemovalOptions")}} object, but all options are ignored. The entire cache is always cleared when using this function.

This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).

Expand All @@ -23,8 +23,8 @@ let removing = browser.browsingData.removeCache(

### Parameters

- `removalOptions` {{optional_inline}}
- : `object`. A {{WebExtAPIRef("browsingData.RemovalOptions")}} object. This parameter has no effect.
- `removalOptions`
- : `object`. A {{WebExtAPIRef("browsingData.RemovalOptions")}} object. This parameter must be set but has no effect.

### Return value

Expand Down
3 changes: 1 addition & 2 deletions files/en-us/mozilla/firefox/releases/133/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This article provides information about the changes in Firefox 133 that affect d

### HTML

No notable changes
- The [`viewport <meta>` tag](/en-US/docs/Web/HTML/Viewport_meta_tag) now supports the [`interactive-widgets`](/en-US/docs/Web/HTML/Viewport_meta_tag#the_effect_of_interactive_ui_widgets) attribute, this influences the size of the viewport when common UI widgets, such as virtual keyboards, are added to the screen. ([Firefox bug 1831649](https://bugzil.la/1831649) and [Firefox bug 1920755](https://bugzil.la/1920755)).

### CSS

Expand Down Expand Up @@ -41,7 +41,6 @@ No notable changes

- The [`onwaitingforkey`](/en-US/docs/Web/API/HTMLMediaElement/waitingforkey_event) content attribute can now be specified on {{htmlelement("audio")}}/{{htmlelement("video")}} elements to set an inline event handler for the `waitingforkey` event. ([Firefox bug 1925952](https://bugzil.la/1925952)).
- {{domxref("ServiceWorkerContainer")}} is now exposed in all worker contexts via {{domxref("WorkerNavigator.serviceWorker")}}, allowing workers to inspect and manage the {{domxref("ServiceWorkerRegistration","service worker registrations","","nocode")}} associated with the current origin. Previously `ServiceWorkerContainer` was only available in the main thread, via {{domxref("Navigator.serviceWorker")}}. ([Firefox bug 1113522](https://bugzil.la/1113522)).
- The {{domxref("ImageDecoder")}}, {{domxref("ImageTrackList")}}, and {{domxref("ImageTrack")}} interfaces of the [WebCodecs API](/en-US/docs/Web/API/WebCodecs_API) are now supported, enabling the decoding images from the main and worker threads. ([Firefox bug 1923755](https://bugzil.la/1923755)).
- The [`name`](/en-US/docs/Web/API/PerformanceNavigationTiming#performanceentry.name) property of `PerformanceNavigationTiming` now omits [text fragments](/en-US/docs/Web/URI/Fragment/Text_fragments) from the returned URL, matching the specification. This kind of {{domxref("PerformanceResourceTiming")}} object is returned by {{domxref("Performance.getEntries()")}} for entries with an {{domxref("PerformanceEntry/entryType", "entryType")}} of `navigation`. ([Firefox bug 1919565](https://bugzil.la/1919565)).

#### Removals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ setSharedStorageContext(context)
### Parameters

- `context`
- : A string representing the contextual data to pass in to shared storage. Once set, this will be stored in the [internal config](/en-US/docs/Web/API/FencedFrameConfig#internal_config) `storageContext` property.
- : A string representing the contextual data to pass into shared storage. Once set, this will be stored in the {{domxref("FencedFrameConfig")}} instance's internal config.

### Return value

Expand Down
34 changes: 34 additions & 0 deletions files/en-us/web/api/htmlembedelement/getsvgdocument/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "HTMLEmbedElement: getSVGDocument() method"
short-title: getSVGDocument
slug: Web/API/HTMLEmbedElement/getSVGDocument
page-type: web-api-instance-method
browser-compat: api.HTMLEmbedElement.getSVGDocument
---

{{APIRef("HTML DOM")}}

The **`getSVGDocument()`** method of the {{domxref("HTMLEmbedElement")}} interface returns the {{domxref("Document")}} object of the embedded SVG.

## Value

A {{domxref("Document")}}.

## Examples

```js
const svg = document.getElementById("el").getSVGDocument();
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLIFrameElement.getSVGDocument")}}
- {{domxref("HTMLObjectElement.getSVGDocument")}}
5 changes: 4 additions & 1 deletion files/en-us/web/api/htmlembedelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ _Inherits properties from its parent, {{domxref("HTMLElement")}}._

## Instance methods

_No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}._
_Also inherits methods from its parent interface, {{domxref("HTMLElement")}}._

- {{domxref("HTMLEmbedElement.getSVGDocument()")}}
- : Returns the embedded SVG as a {{domxref("Document")}}.

## Specifications

Expand Down
37 changes: 37 additions & 0 deletions files/en-us/web/api/htmlembedelement/type/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: "HTMLEmbedElement: type property"
short-title: type
slug: Web/API/HTMLEmbedElement/type
page-type: web-api-instance-property
browser-compat: api.HTMLEmbedElement.type
---

{{APIRef("HTML DOM")}}

The **`type`** property of the {{domxref("HTMLEmbedElement")}} interface returns a string that reflects the `type` attribute of the {{HTMLElement("embed")}} element, indicating the {{glossary("MIME type")}} of the resource. It reflects the {{htmlelement("embed")}} element's [`type`](/en-US/docs/Web/HTML/Element/embed#type) attribute

## Value

A string; the MIME type of the resource.

## Examples

```js
const el = document.getElementById("el");
console.log(el.type); // Output: "video/webp"
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLObjectElement.type")}}
- {{domxref("HTMLSourceElement.type")}}
- [Media types found on the web](/en-US/docs/Web/Media/Formats)
- [Important MIME types for web developers](/en-US/docs/Web/HTTP/MIME_types#important_mime_types_for_web_developers)
34 changes: 34 additions & 0 deletions files/en-us/web/api/htmliframeelement/getsvgdocument/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "HTMLIframeElement: getSVGDocument() method"
short-title: getSVGDocument
slug: Web/API/HTMLIframeElement/getSVGDocument
page-type: web-api-instance-method
browser-compat: api.HTMLIframeElement.getSVGDocument
---

{{APIRef("HTML DOM")}}

The **`getSVGDocument()`** method of the {{domxref("HTMLIframeElement")}} interface returns the {{domxref("Document")}} object of the embedded SVG.

## Value

A {{domxref("Document")}}.

## Examples

```js
const svgDoc = document.getElementById("el").getSVGDocument();
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLEmbedElement.getSVGDocument")}}
- {{domxref("HTMLObjectElement.getSVGDocument")}}
5 changes: 4 additions & 1 deletion files/en-us/web/api/htmliframeelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ _Inherits properties from its parent, {{domxref("HTMLElement")}}_.

## Instance methods

_Inherits methods from its parent, {{domxref("HTMLElement")}}_.
_Also inherits methods from its parent interface, {{domxref("HTMLElement")}}._

- {{domxref("HTMLIframeElement.getSVGDocument()")}}
- : Returns the embedded SVG as a {{domxref("Document")}}.

## Specifications

Expand Down
55 changes: 55 additions & 0 deletions files/en-us/web/api/htmllinkelement/sizes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: "HTMLLinkElement: sizes property"
short-title: sizes
slug: Web/API/HTMLLinkElement/sizes
page-type: web-api-instance-property
browser-compat: api.HTMLLinkElement.sizes
---

{{APIRef("HTML DOM")}}

The readonly **`sizes`** property of the {{domxref("HTMLLinkElement")}} interfaces defines the sizes of the icons for visual media contained in the resource. It reflects the {{HTMLElement("link")}} element's [`sizes`](/en-US/docs/Web/HTML/Element/link#sizes) attribute, which takes a list of space-separated sizes, each in the format `<width in pixels>x<height in pixels>`, or the keyword `any`.

It is only relevant if the {{domxref("HTMLLinkElement.rel", "rel")}} is `icon` or a non-standard type like `apple-touch-icon`.

## Value

A {{domxref("DOMTokenList")}}

## Examples

```html
<link rel="icon" sizes="72x72 114x114" href="smallish.png" />
```

```js
const link = document.querySelector("[rel=icon],[rel=apple-touch-icon]");
console.dir(link.sizes); /* output:
DOMTokenList [ "72x72", "114x114" ]
0: "72x72"
1: "114x114"
length: 2
value: "72x72 114x114"
*/
console.log(link.sizes.value); // output: '72x72 114x114'
console.log(link.sizes.length); // output: 2'
console.log(link.sizes[0]); // output: '72x72'
console.log(link.sizes[1]); // output: '114x114'
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLLinkElement.rel")}}
- {{domxref("HTMLLinkElement.relList")}}
- {{domxref("HTMLLinkElement.type")}}
- {{domxref("HTMLLinkElement.href")}}
- {{HTMLElement("link")}}
- [`rel`](/en-US/docs/Web/HTML/Attributes/rel) attribute
34 changes: 34 additions & 0 deletions files/en-us/web/api/htmlobjectelement/getsvgdocument/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "HTMLObjectElement: getSVGDocument() method"
short-title: getSVGDocument
slug: Web/API/HTMLObjectElement/getSVGDocument
page-type: web-api-instance-method
browser-compat: api.HTMLObjectElement.getSVGDocument
---

{{APIRef("HTML DOM")}}

The **`getSVGDocument()`** method of the {{domxref("HTMLObjectElement")}} interface returns the {{domxref("Document")}} object of the embedded SVG.

## Value

A {{domxref("Document")}}.

## Examples

```js
const svg = document.getElementById("el").getSVGDocument();
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLIFrameElement.getSVGDocument")}}
- {{domxref("HTMLEmbedElement.getSVGDocument")}}
2 changes: 2 additions & 0 deletions files/en-us/web/api/htmlobjectelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ _Inherits methods from its parent, {{domxref("HTMLElement")}}._

- {{domxref("HTMLObjectElement.checkValidity()")}}
- : Always returns `true` because {{HTMLElement("object")}} elements are never candidates for constraint validation.
- {{domxref("HTMLObjectElement.getSVGDocument()")}}
- : Returns the embedded SVG as a {{domxref("Document")}}.
- {{domxref("HTMLObjectElement.reportValidity()")}}
- : Always returns `true` because {{HTMLElement("object")}} elements are never candidates for constraint validation.
- {{domxref("HTMLObjectElement.setCustomValidity()")}}
Expand Down
36 changes: 36 additions & 0 deletions files/en-us/web/api/htmltrackelement/default/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "HTMLTrackElement: default property"
short-title: default
slug: Web/API/HTMLTrackElement/default
page-type: web-api-instance-property
browser-compat: api.HTMLTrackElement.default
---

{{ApiRef("HTML DOM")}}

The **`default`** property of the {{domxref("HTMLTrackElement")}} interface represents whether the track will be enabled if the user's preferences do not indicate that another track would be more appropriate. It reflects the {{htmlelement("track")}} element's boolean [`default`](/en-US/docs/Web/HTML/Element/track#default) attribute, returning `true` if present and `false` otherwise.

## Value

A Boolean.

## Example

```js
const trackElement = document.getElementById("exampleTrack");
console.log(trackElement.default);
trackElement.default = true;
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("HTMLTrackElement.kind")}}
- {{domxref("HTMLTrackElement.label")}}
Loading

0 comments on commit f502c8a

Please sign in to comment.