Hacker Newsnew | past | comments | ask | show | jobs | submit | more AlienRobot's commentslogin

Great functionality, terrible name.


I sometimes wonder whether what the DOM APIs could look like in a hypothetical world where we could start over with everything.


It looks like this isn't a standard yet.


After a minute of digging, found discussion here: https://github.com/WICG/sanitizer-api/issues/100 Perhaps it can be reopened (or a new issue can be opened) regarding naming.


Why? Does it not set the HTML?


There is already an innerHTML property for elements. This doesn't set the outer HTML, so it's literally setInnerHTML2.


It doesn't say "There's a lot of hidden sanitizing stuff inside this method" from the name...

Something like "setSafeHTML()" would be preferable. (Since it's Mozilla, there should be a few committee meetings to come up with the appropriate name)...


Well ,could it be safelySetHTML instead of setSafeHTML ?

The second one could imply the HTML is already safe while the first one is safe way to set html.

If it's just setHTML then it could imply that don't care if its safe or not.


The name seems ideal to me.


>To the surprise of literally nobody, it’s Chromium with AI slapped on top

We should start calling browsers "Chromiums."

My favorite Chromium is Vivaldi, by the way. It doesn't have AI slapped on it, but it has native a RSS client, e-mail client, vertical tabs, notes, a way to separate tabs into "workspaces" and a way to save tabs into "sessions" that you can reopen later, and it native profiles like Chrome. There are also countless settings you can customize (and lots of terrible defaults that you will want to customize, like rocker gestures). It's pretty much Opera 2.0 without the crypto. These features feel to me far more useful than AI.


Love Vivaldi! It has improved significantly over the years! I use it in tandem with Firefox.

I love to have thumbnail tabs!


"Chromia" has a nice ring to it. "OpenAI just increased the number of Chromia by one."


AI-powered citogenesis!


React is crazy because someone thought this was too complicated for developers:

    event.listenTo(render);
    event.emit();
And that we should do this instead:

    property.listenTo(render);
    property.set([property.get()[0]]);


Am I correct to assume "modern AI system" means "neural network"?


See the note for technical folk[1], I'm referring to 2025 frontier large language models.

[1]: https://boydkane.com/essays/boss#user-content-fn-7


Adding to this, when using AI as an autocomplete, it feels like I'm being distracted every half second I type a character because I need to check if the autocomplete is what I was going to type or not, which feels just very annoying.

So I'm more productive, but at what cost...


If I was a landlord, I'd make a list of political terms, and use a simple SQL regex to shadowban all accounts that have any of those terms in their bios. That's probably the only way to fix social media. Sometimes I wish I was a landlord just to try and do this.


This has been solved a long while ago, for better or for worse.

See e.g. https://en.wikipedia.org/wiki/Dog_whistle_(politics) or https://en.wikipedia.org/wiki/Algospeak


If you have a landlord, that entity will be getting a lot of very angry correspondence from your tenants forthwith.


+have LLMs argue with the shadowbanned comments lest they catch on.


More media -> More speed demand -> More speed -> More media -> More speed demand...


Is it just me or there has never been a single logo update in history that actually improved a logo?

An once whimsical corner of web development has lost its charm due to arbitrary trends.


You can achieve the same by taking a bus, though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: