Skip to content

Implement menu element for Slipstream#234

Merged
jverkoey merged 3 commits into
mainfrom
claude/implement-menu-element-011CUprhkKgASEBdXL27TMQ8
Nov 5, 2025
Merged

Implement menu element for Slipstream#234
jverkoey merged 3 commits into
mainfrom
claude/implement-menu-element-011CUprhkKgASEBdXL27TMQ8

Conversation

@jverkoey

@jverkoey jverkoey commented Nov 5, 2025

Copy link
Copy Markdown
Collaborator

Add the HTML

element to represent a group of commands or options. The menu element can be used for toolbars, context menus, or lists of form controls.

  • Add Menu struct as a W3CElement in GroupingContent
  • Add comprehensive tests covering various usage patterns
  • Update SlipstreamForWebDevelopers.md documentation

The implementation follows established patterns for simple W3C elements, balancing W3C idioms with SwiftUI familiarity.

Part of #25

Add the HTML <menu> element to represent a group of commands or options.
The menu element can be used for toolbars, context menus, or lists of form controls.

- Add Menu struct as a W3CElement in GroupingContent
- Add comprehensive tests covering various usage patterns
- Update SlipstreamForWebDevelopers.md documentation

The implementation follows established patterns for simple W3C elements,
balancing W3C idioms with SwiftUI familiarity.
- Add missing Foundation import for URL usage
- Update Link calls to use correct destination: parameter syntax
- Fix documentation example to match actual Link API
The DOMString content inside Div elements is rendered with indentation
on separate lines, not inline with the div tags.
@jverkoey jverkoey merged commit fc1655e into main Nov 5, 2025
2 checks passed
@jverkoey jverkoey deleted the claude/implement-menu-element-011CUprhkKgASEBdXL27TMQ8 branch November 5, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants