code wiki / (root) / nx_dom_click.nx

nx_dom_click.nx

buildroot/runtime/nx_dom_click.nx

5866 B145 linesdepth 3pulls 4 transitivereach 6 importersview sourcekind librarytopic dom
docsdependenciesstructsconstsfunctions

about

nx_dom_click.nx -- bits-up "click intent" extractor. Locates an element by selector criteria and extracts its (action_id, arg0..arg3) tuple from the data-action / data-arg0..3 attributes. The test driver then passes those values to the game's nx_*_action() function to simulate the click. Composes nx_dom_query.nx (locates the element). Single-exit pattern to sidestep the parser scope quirk noted in [[project-bits-up-test-driver-roadmap-2026-05-20]].

dependencies 1 imports · 5 importers

nx_dom_query.nx nx_dom_click.nx nx_chk_bits_up_e2e.nx nx_dom_click_test.nx nx_test_driver_e2e.nx nx_test_harness.nx nx_ttt_bits_up_e2e.nx

imports: nx_dom_query.nx

imported by: nx_chk_bits_up_e2e.nxnx_dom_click_test.nxnx_test_driver_e2e.nxnx_test_harness.nxnx_ttt_bits_up_e2e.nx

structs

13struct NxClickIntent

consts

none

functions

22func _ck_strlen(s: *u8) -> i64
30func _ck_parse_int(src: *u8, off: i64, len: i64, out_val: *i64) -> i64
54func nx_dom_attr_int_at(html: *u8, tag_off: i64, tag_len: i64,
70func nx_dom_click_intent(html: *u8, html_len: i64,
111func nx_dom_click_intent_by_class(html: *u8, html_len: i64,