资讯AI 辅助草稿来源原文 ↗

热点Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives

github.com · 发布于 2026-11-10 18:01

来源节选(非本站原创长文,完整内容请见来源)

Browsers natively handle a lot of what used to take 50 lines of JS (or a dependency): CSS.highlights for text range highlighting without <span>s everywhere, <dialog> and showModal() give you backdrops and ideal focus management, field-sizing to auto-grow textareas as the user types.. (Something yesterday's ftrain post touched on [0]) Models know about some of these by name, but consistently won't default to using the platform-native solution and instead prefer the incumbent <div>+JS based pattern.

来源:Hacker News 讨论