Visitar URL original
How can policyValue be 'undefined'? · Issue #540 · w3c/trusted-types · GitHub
Skip to content

How can policyValue be 'undefined'? #540

Open

Description

@smaug----

https://w3c.github.io/trusted-types/dist/spec/#abstract-opdef-process-value-with-a-default-policy step 4
The callbacks are webidl callbacks, so the return value is DOMString? or USVString?, no?

https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-string-algorithm seems to then check for undefined too.

@mbrodesser-Igalia @lukewarlow @koto

Activity

  1. lukewarlow commented on Aug 2, 2024

    @lukewarlow
    Member

    Yeah I think you're right the undefined would become null through the IDL conversions.

  2. petervanderbeken commented on Aug 2, 2024

    @petervanderbeken
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions