Skip to content

Conversation

foolip
Copy link
Collaborator

@foolip foolip commented Aug 22, 2025

In most places API is more natural and consistent with the rest of
web-features.

Sanitizer is aligned with the wording in parse-html-unsafe.yml.

For WebDriver "interface" isn't wrong, but protocol seems clearer.

In most places API is more natural and consistent with the rest of
web-features.

Sanitizer is aligned with the wording in parse-html-unsafe.yml.

For WebDriver "interface" isn't wrong, but protocol seems clearer.
@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Aug 22, 2025
@@ -1,5 +1,5 @@
name: DOM Geometry
description: The `DOMMatrix`, `DOMPoint`, `DOMQuad` and `DOMRect` interfaces offer a way to represent points, rectangles, quadrilaterals and transformation matrices within JavaScript. They can be used in transformations in CSS, `<canvas>`, and SVG.
description: The `DOMMatrix`, `DOMPoint`, `DOMQuad` and `DOMRect` APIs offer a way to represent points, rectangles, quadrilaterals and transformation matrices within JavaScript. They can be used in transformations in CSS, `<canvas>`, and SVG.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: The `DOMMatrix`, `DOMPoint`, `DOMQuad` and `DOMRect` APIs offer a way to represent points, rectangles, quadrilaterals and transformation matrices within JavaScript. They can be used in transformations in CSS, `<canvas>`, and SVG.
description: The `DOMMatrix`, `DOMPoint`, `DOMQuad` and `DOMRect` APIs represent points, rectangles, quadrilaterals and transformation matrices within JavaScript. They can be used in transformations in CSS, `<canvas>`, and SVG.

@@ -1,5 +1,5 @@
name: Sanitizer API
description: The `parseHTML()` method for the `Document` interface and the `setHTML()` methods for the `Element` and `ShadowRoot` interfaces parse and insert HTML into the DOM in a way that can prevent cross-site scripting attacks. The `Sanitizer` API can customize the sanitization process.
description: The `Document.parseHTML()` static method and the `setHTML()` method of `Element` and `ShadowRoot` parses and insert HTML into the DOM in a way that can prevent cross-site scripting attacks. The `Sanitizer` API can customize the sanitization process.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Something about this read a little off to me. In contrast to Document, a developer is unlikely to actually touch the Element and ShadowRoot interfaces directly, but manipulate instances. What do you think of this change?

Suggested change
description: The `Document.parseHTML()` static method and the `setHTML()` method of `Element` and `ShadowRoot` parses and insert HTML into the DOM in a way that can prevent cross-site scripting attacks. The `Sanitizer` API can customize the sanitization process.
description: The `Document.parseHTML()` static method and the `setHTML()` method of `Element` and `ShadowRoot` objects parse and insert HTML into the DOM in a way that can prevent cross-site scripting attacks. The `Sanitizer` API can customize the sanitization process.

@ddbeck
Copy link
Collaborator

ddbeck commented Aug 26, 2025

Approved, but with a couple of suggestions. Merge at your discretion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants