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

Spec draft for fromLiteral method. See #347. #350

Merged
merged 3 commits into from
Nov 17, 2021
Merged

Conversation

koto
Copy link
Member

@koto koto commented Oct 21, 2021

No description provided.

spec/index.bs Outdated Show resolved Hide resolved
spec/index.bs Outdated Show resolved Hide resolved
spec/index.bs Outdated Show resolved Hide resolved
spec/index.bs Outdated Show resolved Hide resolved
@koto
Copy link
Member Author

koto commented Oct 21, 2021

Thanks!

@craigfrancis
Copy link

Could there be an example? Even if it's as simple as:

const html = TrustedHTML.fromLiteral`<p>Literal Text</p>`;

I ask because I find quite a few developers aren't aware of Tagged Templates, and how these functions/methods are called, e.g. not TrustedHTML.fromLiteral(['<p>Example</p>']);

@koto koto merged commit 49af155 into w3c:main Nov 17, 2021
github-actions bot added a commit that referenced this pull request Nov 17, 2021
SHA: 49af155
Reason: push, by @koto

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to koto/trusted-types that referenced this pull request Jan 12, 2022
SHA: 49af155
Reason: push, by @koto

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants