dom

Tag

Cards List
#dom

Inline rendering with document.currentScript

Lobsters Hottest ↗ · yesterday Cached

一篇技术短文,介绍如何用 document.currentScript 实现 HTML 中的内联动态渲染(如当前年份、随机问候语、逐字拆分动画),无需模板引擎或后端。

0 favorites 0 likes
#dom

Inline rendering with document​.currentScript

Simon Willison's Blog ↗ · 2d ago Cached

Simon Willison 链接分享了 Lean Rada 的一个前端小技巧:利用 document.currentScript 让内联 <script> 在页面加载时替换自身,从而用极简代码实现一个微型模板语言。

0 favorites 0 likes
#dom

Shadow roots, explained with live examples

Simon Willison's Blog ↗ · 2026-09-23 Cached

This tool provides interactive examples to explain shadow roots in CSS, demonstrating style encapsulation, inheritance, slots, and JavaScript access.

0 favorites 0 likes
#dom

An edge case I didn't expect: actions that exist on a page but aren't currently interactable

Reddit r/AI_Agents ↗ · 2026-08-29

The author discusses an edge case in their agent-readable-manifest API where webpage elements are not currently interactable due to visibility, highlighting the distinction between element existence and current interactability for web agents.

0 favorites 0 likes
#dom

Dmitri Gaskin on jQuery (2008)

Lobsters Hottest ↗ · 2026-07-26 Cached

12-year-old Drupal core developer Dmitri Gaskin demoed core jQuery usage at TechTalk in 2008, including selectors, traversal, DOM manipulation, and CSS operations, emphasizing "write less, do more."

0 favorites 0 likes
#dom

Show HN: An ASCII 3D Rendering Engine

Hacker News Top ↗ · 2026-06-20 Cached

GlyphCSS is a JavaScript library that renders textured 3D meshes in the DOM using ASCII characters, supporting various 3D formats and integrating with vanilla JS, React, and Vue.

0 favorites 0 likes
← Back to home

Submit Feedback