---
title: "Discussion on \"TrustedHTML - Why Can't I Create Web Components from the Console?\" | Hashnode"
description: "Discussion on \"TrustedHTML - Why Can't I Create Web Components from the Console?\". I came across the TrustedHTML API while working with Web Components in the Lit framework. Being a lazy developer, I prefer testing things directly in the browser console instead of creating separate files. During one of these experiments, I ran into ..."
url: "https://hashnode.com/posts/trustedhtml-why-cant-i-create-web-components-from-the-console/673c561db0a16aac0d8ad4dc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TrustedHTML - Why Can't I Create Web Components from the Console?](https://trustedhtmlapi.hashnode.dev/trustedhtml-why-cant-i-create-web-components-from-the-console?utm_source=hashnode&utm_medium=feed)

I came across the TrustedHTML API while working with Web Components in the Lit framework. Being a lazy developer, I prefer testing things directly in the browser console instead of creating separate files. During one of these experiments, I ran into ...

Nov 19, 2024 · 1 min read · trustedhtmlapi.hashnode.dev  
Read the article

-   [#trustedhtml](https://hashnode.com/tag/trustedhtml)
-   [#web-components](https://hashnode.com/tag/web-components)
-   [#web-security](https://hashnode.com/tag/web-security)
-   [#lit](https://hashnode.com/tag/lit)

## Written by

[Roja Gnanavel](https://hashnode.com/@roja-gnanavel)

@roja-gnanavel · Chennai, Tamil Nadu, India

  
[View profile](https://hashnode.com/@roja-gnanavel)

JavaScript Developer

Seasoned Web Developer | 8+ Years of Experience As a passionate tech enthusiast, I've spent years devouring industry insights. But, I realized that my laziness was holding me back from sharing my knowledge. No more! Inspired by Instagram's visual storytelling, I'm now documenting my tech adventures on Hashnode. Follow me for valuable tech insights, and let's grow together!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
