update doc comment

This commit is contained in:
Halil Durak
2026-02-04 02:29:12 +03:00
parent 6eff448508
commit 3ac795a25e

View File

@@ -105,14 +105,20 @@ _element_assigned_slots: Element.AssignedSlotLookup = .{},
/// Lazily-created inline event listeners (or listeners provided as attributes). /// Lazily-created inline event listeners (or listeners provided as attributes).
/// Avoids bloating all elements with extra function fields for rare usage. /// Avoids bloating all elements with extra function fields for rare usage.
/// ///
/// Use this when a listener provided like these: /// Use this when a listener provided like this:
///
/// ```js
/// img.onload = () => { ... };
/// ```
///
/// Its also used as cache for such cases after lazy evaluation:
/// ///
/// ```html /// ```html
/// <img onload="(() => { ... })()" /> /// <img onload="(() => { ... })()" />
/// ``` /// ```
/// ///
/// ```js /// ```js
/// img.onload = () => { ... }; /// img.setAttribute("onload", "(() => { ... })()");
/// ``` /// ```
_element_attr_listeners: Element.AttrListenerLookup = .{}, _element_attr_listeners: Element.AttrListenerLookup = .{},