#webComponent

xoron :verified:xoron@infosec.exchange
2025-06-28

Are Web Components & Cybersecurity A Better Combo?

I'm not trying to dunk on popular #UI #frameworks – I'm sure they're totally fine for #cybersecurity stuff, probably get loads of reviews and #audits.

But from my angle: Web Components are *native* to the #browser. Doesn't that just inherently reduce the risk of **#SupplyChainAttacks** (you know, like a rogue `npm install` on a bad network) for your #AppSecurity?

Or am I overthinking it, and the #framework choice is less important than the #browser, #OS, or #device running it? What are your thoughts, #DevCommunity?

---

Quick context: I've got a #ReactJS #messagingApp (repo here: github.com/positive-intentions) and a separate #UIFramework (repo here: github.com/positive-intentions) built with #Lit (which uses Web Components). I'm genuinely wondering if there's a compelling #cybersecurity reason to refactor the chat app to use my #WebComponent UI framework. Might be a whole new level of #SecurityByDesign for #FrontEndDev.

FYI, same question's on Reddit here: reddit.com/r/ExperiencedDevs/c, got some good #insights, but want to make sure nothing's getting overlooked! Let's discuss #InfoSec #WebDev #JavaScript #OpenSource #TechQuestion.

2025-06-18

thanks to a discussion on reddit [1] and some links [2] I came across a different view on #webcomponents.
In short, just wrap content in a #webcomponent instead of trying to "upgrade" it. Like so:

<user-avatar>
<img src>
</user-avatar>

I always thought until now that it should rather be

<img src is=user-avatar>

but `is` is not widely usable.
I still need to digest it. I see the use cases, but somehow feels still strange

[1] reddit.com/r/HTML/comments/1ld
[2] adactio.com/journal/20618

westbrookwestbrook
2025-06-06

@webkit Also, while I'm here, @FirefoxDevTools where's my support for `:host:has(...)` at!?!

2025-05-27

I'm trying to make with the exact same API as a native HTMLVideoElement - is there any clever way to do it?

westbrookwestbrook
2025-05-19

@matuzo Shadow DOM isn’t the only part of the platform that popularity is adding pressure on automated tools to support. Things like Element Internals are getting left off the menu in many places, like github.com/dequelabs/axe-core/, just as they and soon things like Reference Targets start to expand as well. 🥺

Inautiloinautilo
2025-05-07


Glossary web component · A slick way to add links and context to your content ilo.im/163pvz

_____

Tane Piper ⁂tanepiper@tane.codes
2025-05-01

The other day I mentioned I might have accidentally written a web component framework powered by @vite Here I've written about said framework - mastodon.gamedev.place/@teskoo

#webComponent #JavaScript #framework #webComponents #vite

2025-05-01

Version 0.2.0 of #teskooano is out!

Read about the release and the new #webComponent #JavaScript #framework I've written - now live on the site!

Also see the roadmap for upcoming plans

teskooano.space/plan/00002/

#gamedev #webDev #indieDev #ui #typescript

A screenshot of a lava planet in Teskooano, looking at the dark side with the atmosphere showingA screenshot of a neutron star in Teskooano
Tane Piper ⁂tanepiper@tane.codes
2025-04-28

I think I've accidentally built quite a cool '#webComponent-as-a-plugin' system for the @teskooano UI - essentially two functions - one to register base components, and one to register full plugins, that are made up of one or more web components, functions and a controller. These components can self-register things like buttons in certain toolbars, or you can just add them as functions (like opening a new external URL). I'll post a bit more on it later

Alavi | علویalavi@techhub.social
2025-04-27

Just embedded #vue into a huge legacy web application with vue components (generates vue #webcomponent).
This is a big step, since now I can incrementally rewrite the whole UI.

2025-04-23

Just released: #teskooano new #webComponent based engine toolbar - a plugin toolbar that allows panels to register themselves with a button - so it;s much easier to add new features.

teskooano.space

#gameDev #indieDev #threeJS

Sam Warnicksamwarnick
2025-03-30

Got a bit distracted while working on a side project and made a for some floating frosted glass.

codepen.io/samwarnick/pen/VYwE

2025-03-28

Been building a Card component for our #DesignSystem. Trickier than you might think.

To make the card surface clickable, it uses an approach from @heydon 's excellent inclusive-components.design/ca post, albeit wrapped up as a #WebComponent that progressively enhances a link/button in the card's content.

Also taking cues from @nathanacurtis sub components post medium.com/eightshapes-llc/sub and giving our consumers a suite of building blocks to assemble whatever specialsed card variations they need.

Ryan Feigenbaumroyalfig
2025-03-18

Shareception! The share button I built, in action on my website, being used to share a blurb about the share button.

ryanfeigenbaum.com/share-this-

Philip Weinkeweph@phpc.social
2025-03-18

Is it possible to unregister or redefine a web component? The CustomElementRegistry doesn't support it, but does anyone know a workaround?

#webcomponent

2025-02-26

Is this stupid? I'm working on a table sort button web component. I need multiple instances to interact: if one is clicked, the rest turn off an attribute. I'm emitting a custom event on click and listening for it on the same component (limited to container table). If the event.target != this, turn off attribute. It works but it *feels* wrong. Any thoughts?
#webComponent

Heribert Schützhcschuetz
2025-02-23

My for embedding feeds and its demo page hcschuetz.github.io/mastodon-t got a few enhancements, for example:

1. CSS fixes. (The old styling worked in Firefox but had problems in Edge and probably also Chrome.)
2. Hide sensitive content.
3. Added a list of similar projects to the demo page.
4. And perhaps most importantly: The component configuration became both simpler and more powerful.

1/2

Noah Liebmannoleli
2025-02-13

If you have a with

```js
constructor() {
this.mq = matchMedia(…)
}
```

do you need to clean up any change listeners in `disconnectedCallback()`?

This was not intuitive to me, and I could imagine it going both ways.

1/2 (answer in next post)

Inautiloinautilo
2025-02-12


Marquee · A smoothly animated, flexible ticker web component ilo.im/162b3u

_____

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst