Skip to content

Commit

Permalink
Synchronize with BCD v5.5.28 (#33617)
Browse files Browse the repository at this point in the history
Co-authored-by: OnkarRuikar <OnkarRuikar@users.noreply.github.com>
  • Loading branch information
OnkarRuikar and OnkarRuikar committed May 15, 2024
1 parent fcd4f39 commit 55a1f69
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/compute_pressure_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The Compute Pressure API is [policy-controlled](/en-US/docs/Web/HTTP/Permissions

The following interfaces are present in the Compute Pressure API and the API surface is similar to other observers, such as {{domxref("IntersectionObserver")}}, {{domxref("MutationObserver")}}, or {{domxref("PerformanceObserver")}}.

- {{domxref("PressureObserver")}}
- {{domxref("PressureObserver")}} {{experimental_inline}}
- : Notifies when the system's pressure changes for a specfied number of sources (e.g. the CPU) at a predefined sample interval.
- {{domxref("PressureRecord")}}
- : Describes the pressure trend at a specific moment of transition.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ _`Element` inherits methods from its parents {{DOMxRef("Node")}}, and its own pa
- : Sets the value of the attribute with the specified name and namespace, from the current node.
- {{DOMxRef("Element.setCapture()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}
- : Sets up mouse event capture, redirecting all mouse events to this element.
- {{DOMxRef("Element.setHTML()")}} {{Experimental_Inline}} {{SecureContext_Inline}}
- {{DOMxRef("Element.setHTML()")}} {{SecureContext_Inline}} {{deprecated_inline}}
- : Parses and [sanitizes](/en-US/docs/Web/API/HTML_Sanitizer_API) a string of HTML and inserts into the DOM as a subtree of the element.
- {{DOMxRef("Element.setPointerCapture()")}}
- : Designates a specific element as the capture target of future [pointer events](/en-US/docs/Web/API/Pointer_events).
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/element/sethtml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ short-title: setHTML()
slug: Web/API/Element/setHTML
page-type: web-api-instance-method
status:
- experimental
- deprecated
browser-compat: api.Element.setHTML
---

{{APIRef("HTML Sanitizer API")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("HTML Sanitizer API")}}{{SecureContext_Header}}{{deprecated_header}}

The **`setHTML()`** method of the {{domxref("Element")}} interface is used to parse and sanitize a string of HTML and then insert it into the DOM as a subtree of the element.
It should be used instead of {{domxref("Element.innerHTML")}} for inserting untrusted strings of HTML into an element.
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/html_sanitizer_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ slug: Web/API/HTML_Sanitizer_API
page-type: web-api-overview
status:
- deprecated
- experimental
browser-compat: api.Sanitizer
---

Expand Down Expand Up @@ -55,7 +54,7 @@ This applies to both methods.

## Interfaces

- {{domxref('Sanitizer')}} {{Experimental_Inline}}
- {{domxref('Sanitizer')}} {{deprecated_inline}}
- : Provides the functionality to define a sanitizer configuration, to sanitize untrusted strings of HTML for later insertion into the DOM, and to sanitize {{domxref('Document')}} and {{domxref('DocumentFragment')}} objects.
- {{domxref('Element/setHTML','Element.setHTML()')}}
- : Parses a string of HTML into a subtree of nodes, sanitizes it using a `Sanitizer` object, then sets it as a child of the current element.
Expand Down
12 changes: 6 additions & 6 deletions files/en-us/web/api/pressureobserver/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ The **`PressureObserver`** interface is part of the [Compute Pressure API](/en-U

## Constructor

- {{domxref("PressureObserver.PressureObserver","PressureObserver()")}}
- {{domxref("PressureObserver.PressureObserver","PressureObserver()")}} {{experimental_inline}}
- : Creates and returns a new `PressureObserver` object.

## Static properties

- {{domxref("PressureObserver.knownSources_static", "PressureObserver.knwonSources")}} {{ReadOnlyInline}}
- {{domxref("PressureObserver.knownSources_static", "PressureObserver.knwonSources")}} {{ReadOnlyInline}} {{experimental_inline}}
- : Returns an array of {{domxref("PressureRecord.source","source")}} values supported by the user agent.

## Instance methods

- {{domxref("PressureObserver.observe","PressureObserver.observe()")}}
- {{domxref("PressureObserver.observe","PressureObserver.observe()")}} {{experimental_inline}}
- : Invokes the pressure observer's callback function when a pressure record for the specified `source` is observed.
- {{domxref("PressureObserver.unobserve","PressureObserver.unobserve()")}}
- {{domxref("PressureObserver.unobserve","PressureObserver.unobserve()")}} {{experimental_inline}}
- : Stops the pressure observer callback from receiving pressure records from the specified `source`.
- {{domxref("PressureObserver.disconnect","PressureObserver.disconnect()")}}
- {{domxref("PressureObserver.disconnect","PressureObserver.disconnect()")}} {{experimental_inline}}
- : Stops the pressure observer callback from receiving pressure records from all sources.
- {{domxref("PressureObserver.takeRecords","PressureObserver.takeRecords()")}}
- {{domxref("PressureObserver.takeRecords","PressureObserver.takeRecords()")}} {{experimental_inline}}
- : Returns the current list of pressure records stored in the pressure observer, emptying it out.

## Examples
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/pressurerecord/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ The **`PressureRecord`** interface is part of the [Compute Pressure API](/en-US/

## Instance properties

- {{domxref("PressureRecord.source")}} {{ReadOnlyInline}}
- {{domxref("PressureRecord.source")}} {{ReadOnlyInline}} {{experimental_inline}}
- : A string indicating the origin source from which the record is coming.
- {{domxref("PressureRecord.state")}} {{ReadOnlyInline}}
- {{domxref("PressureRecord.state")}} {{ReadOnlyInline}} {{experimental_inline}}
- : A string indicating the pressure state recorded.
- {{domxref("PressureRecord.time")}} {{ReadOnlyInline}}
- {{domxref("PressureRecord.time")}} {{ReadOnlyInline}} {{experimental_inline}}
- : A {{domxref("DOMHighResTimeStamp")}} indicating the timestamp of the record.

## Instance methods

- {{domxref("PressureRecord.toJSON()")}}
- {{domxref("PressureRecord.toJSON()")}} {{experimental_inline}}
- : Returns a JSON representation of the `PressureRecord` object.

## Examples
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/sanitizer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: Sanitizer
slug: Web/API/Sanitizer
page-type: web-api-interface
status:
- experimental
- deprecated
browser-compat: api.Sanitizer
---

{{APIRef("Sanitizer")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("Sanitizer")}}{{SecureContext_Header}}{{deprecated_header}}

The **`Sanitizer`** interface of the {{domxref('HTML Sanitizer API')}} is used to sanitize untrusted strings of HTML, {{domxref("Document")}} and {{domxref("DocumentFragment")}} objects.
After sanitization, unwanted elements or attributes are removed, and the returned objects can safely be inserted into a document's DOM.
Expand All @@ -19,12 +19,12 @@ This configuration may be customized using constructor options.

## Constructors

- {{domxref("Sanitizer.Sanitizer", "Sanitizer()")}} {{Experimental_Inline}}
- {{domxref("Sanitizer.Sanitizer", "Sanitizer()")}} {{deprecated_inline}}
- : Creates and returns a `Sanitizer` object, optionally with custom sanitization behavior.

## Instance methods

- {{domxref('Sanitizer.sanitize()')}} {{Experimental_Inline}}
- {{domxref('Sanitizer.sanitize()')}} {{deprecated_inline}}

- : Returns a sanitized {{domxref('DocumentFragment')}} from an input {{domxref('Document')}} or {{domxref('DocumentFragment')}}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/sanitizer/sanitize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ short-title: sanitize()
slug: Web/API/Sanitizer/sanitize
page-type: web-api-instance-method
status:
- experimental
- deprecated
browser-compat: api.Sanitizer.sanitize
---

{{APIRef("HTML Sanitizer API")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("HTML Sanitizer API")}}{{SecureContext_Header}}{{deprecated_header}}

The **`sanitize()`** method of the {{domxref("Sanitizer")}} interface is used to sanitize a tree of DOM nodes, removing any unwanted elements or attributes.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/sanitizer/sanitizer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ short-title: Sanitizer()
slug: Web/API/Sanitizer/Sanitizer
page-type: web-api-constructor
status:
- experimental
- deprecated
browser-compat: api.Sanitizer.Sanitizer
---

{{APIRef("HTML Sanitizer API")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("HTML Sanitizer API")}}{{SecureContext_Header}}{{deprecated_header}}

The **`Sanitizer()`** constructor creates a new {{domxref("Sanitizer")}} object, which can be used to sanitize untrusted strings of HTML, or untrusted {{domxref("Document")}} or {{domxref("DocumentFragment")}} objects, making them safe for insertion into a document's DOM.

Expand Down

0 comments on commit 55a1f69

Please sign in to comment.