Skip to content

Implement HTML address element for Slipstream#221

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

Implement HTML address element for Slipstream#221
jverkoey merged 3 commits into
mainfrom
claude/implement-address-element-011CUpjv5nz15Y9qxtqk5Efz

Conversation

@jverkoey

@jverkoey jverkoey commented Nov 5, 2025

Copy link
Copy Markdown
Collaborator

Add the Address element to represent contact information for a document or section. This follows the W3C specification for the

element, which is used to provide contact information for the nearest article or body ancestor.

Key features:

  • Conforms to W3CElement protocol
  • Supports ViewBuilder content initialization
  • Includes convenience initializer for static text
  • Comprehensive documentation with usage examples
  • Full test coverage including empty block, text content, and attributes

The implementation maintains consistency with other Slipstream elements and balances W3C idioms with SwiftUI familiarity.

Part of #25

Add the Address element to represent contact information for a document
or section. This follows the W3C specification for the <address> element,
which is used to provide contact information for the nearest article or
body ancestor.

Key features:
- Conforms to W3CElement protocol
- Supports ViewBuilder content initialization
- Includes convenience initializer for static text
- Comprehensive documentation with usage examples
- Full test coverage including empty block, text content, and attributes

The implementation maintains consistency with other Slipstream elements
and balances W3C idioms with SwiftUI familiarity.
@jverkoey jverkoey enabled auto-merge (squash) November 5, 2025 12:34
- Update withText() test to expect inline rendering format
- Simplify documentation example to show typical usage in Footer
- Remove unnecessary Linebreak from example for cleaner code
@jverkoey jverkoey merged commit df002a8 into main Nov 5, 2025
2 checks passed
@jverkoey jverkoey deleted the claude/implement-address-element-011CUpjv5nz15Y9qxtqk5Efz branch November 5, 2025 13:01
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