Repository navigation
fix(dom): preserve omitted select option counts - #6212
Arham-Begani wants to merge 1 commit into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
|
|
The contributor tried the CLA link in the bot comment, but no agreement or signing control appeared. I independently opened the same link and saw a page headed “Please agree to the CLA for multiple repositories or organizations”, with an empty Version field and no agreement text or signing button. Could a maintainer check the repository's CLA Assistant setup or provide an approved alternative signing route? No CLA signature is being claimed. The current contribution head remains This diagnostic follow-up was prepared with AI assistance. |
|
Closing this: the 1.0 rewrite removed the DOM serializer this patched, and ax.py already keeps the omitted-option count ( |
Fixes #5195.
_extract_select_optionsalready limits the preview to four labels and appends an omission count. The serializer slices that prepared list to four entries again, dropping the count. Preserve the prepared preview instead. Option labels remain limited to four, with the existing 30-character label truncation.Example for a six-option dropdown:
The regression tests build real DOM/AX/snapshot objects and exercise
serialize_accessible_elements()throughllm_representation(). They cover the four/five-option boundary, six options and an optgroup. They do not seed_compound_children, mock serializer behavior or call an LLM.Validation at 12c341c
git diff --checkpasses.12c341cinto3df5806.3df5806; the other broader failures have not been classified as pre-existing.Keeping this draft while the contributor completes the repository's CLA. Upstream code validation passes; maintainer review is still pending.
AI assistance
The investigation, implementation, regression tests and PR text were prepared with AI assistance.