Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove StringContext attribute #498

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Apr 4, 2024

Swap to using a union type and updating the algorithms directly.

Need #457 merged first as this removes usages of StringContext

Corresponding HTML PR: whatwg/html#10286 (whatwg/html#10328)

Corresponding Sanitizer PR: TODO


Preview | Diff

@@ -1115,18 +1117,9 @@ To <dfn abstract-op export>get Trusted Types-compliant attribute value</dfn> on
# Integrations # {#integrations}

<pre class="idl">
typedef [StringContext=TrustedHTML] DOMString HTMLString;
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to remember to update the HTML, Dom Parser, and Sanitiser API specs to use union types instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

As of w3c/DOM-Parsing#82 DOM Parsing spec will no longer contain any TT sinks.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure it's worth another PR to the sanitiser api, when they're upstreaming they'll get the idea what's going on (especially given Anne has played a part in both specs)

spec/index.bs Outdated Show resolved Hide resolved
@lukewarlow lukewarlow requested a review from koto April 17, 2024 15:06
@lukewarlow lukewarlow force-pushed the update-idl branch 2 times, most recently from 8310136 to 0a79b5b Compare April 22, 2024 14:42
@lukewarlow lukewarlow marked this pull request as ready for review April 22, 2024 14:48
@lukewarlow lukewarlow marked this pull request as draft May 14, 2024 16:15
Swap to using a union type and updating the algorithms directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant