mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-25 09:53:10 -04:00
docs(forms): clarify arena allocator requirement for collectForms
This commit is contained in:
@@ -157,6 +157,7 @@ pub fn registerNodes(forms_data: []FormInfo, registry: anytype) !void {
|
||||
/// Collect all forms and their fields under `root`.
|
||||
/// Uses Form.getElements() to include fields outside the <form> that
|
||||
/// reference it via the form="id" attribute, matching browser behavior.
|
||||
/// `arena` must be an arena allocator — returned slices borrow its memory.
|
||||
pub fn collectForms(
|
||||
arena: Allocator,
|
||||
root: *Node,
|
||||
|
||||
Reference in New Issue
Block a user