Skip to content

HTML Sanitizer API updates #15500

Closed
Closed

Description

@hamishwillee

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/HTML_Sanitizer_API

What specific section or headline is this issue about?

Many

What information was incorrect, unhelpful, or incomplete?

Initial documentation on this preceded the sanitizer configuration options being formalized. As a result:

  • all the examples use a default sanitizer - use of custom sanitizers should be demonstrated
  • Some of the text still refers to the configuration options not being supported
  • Sanitize.getConfiguration() needs to be documented.

In addition, it is likely that along with this Chrome BCD should be updated https://chromestatus.com/feature/5786893650231296

What did you expect to see?

Fixes to the above issues - in particular addition of the Sanitize.getConfiguration()

Do you have any supporting links, references, or citations?

This flows out of:

Do you have anything more you want to share?

I will do this unless someone else gets here first. Happy for that to happen.

Activity

  1. added
    needs triage
    on Apr 29, 2022
  2. added
    Content:WebAPI
    and removed
    needs triage
    on Apr 29, 2022
  3. Josh-Cena commented on Jun 11, 2024

    @Josh-Cena
    Member

    @hamishwillee What do you think of this issue now? I'm not sure what the status of the sanitizer API is and you are already working on #32731.

  4. hamishwillee commented on Jun 11, 2024

    @hamishwillee
    CollaboratorAuthor

    We should close this, because the status has changed since then.

    The API got rewritten, and nothing implements the new spec - though according to Chrome it looks like they have something going on. I am contemplating purging MDN and BCD or all data on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions