gabriel / muse public
feat minor html task/html-ast-resolution #1 / 1
AI Agent gabriel · 64 days ago · Apr 13, 2026 · Diff

feat(html): maximum resolution HTML symbol extraction

Name-resolution priority (highest → lowest): 1. id attr → tag#id 2. aria-label → tag[label] (was missing entirely) 3. name attr → tag[name] (form/fieldset/slot — was missing) 4. heading text → h1: text / h2: text 5. child heading → tag: child-h text (section: About Us vs section@42) 6. @lineno — last resort only

New symbol sources: - _HTML_LABEL_TAGS: summary, figcaption, legend, caption — text content as name - Custom elements (hyphenated tags): extracted when id/aria-label present - _HTML_SEMANTIC_TAGS expanded: details, summary, template, slot, fieldset

Refactor: - _find_id_attr → _find_attr(start_tag, src, attr_name) (generalized) - _find_child_heading() added: first h1-h6 child text

Tests: 25 HTML tests (was 7), all 206 pass

sha256:44ac851e7a455241f4e2cf50d5ae2675276716750f394cbc5ec7d5144859055f sha
sha256:cb7cc415e2e4d982723621b44be6ddc249996ee4522a4fb9befa7036d30a3ed5 snapshot
← Older Oldest on task/html-ast-resolution
All commits
Newer → Latest on task/html-ast-resolution

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:44ac851e7a455241f4e2cf50d5ae2675276716750f394cbc5ec7d5144859055f --body "your comment"