Skip to content

Conversation

@stephencelis
Copy link
Member

Both summary and legend must be the first element of details and fieldset accordingly, but details and fieldset can take any node afterwards—because of this they took Node but we encoded summary and legend using ChildOf semantics, maybe them basically unusable. This adds a single ChildOf argument in an overload to preserve the semantics in the type system and fix the bug.

Copy link
Member

@mbrandonw mbrandonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@stephencelis stephencelis merged commit b0c827a into master Feb 19, 2019
@stephencelis stephencelis deleted the summary-fix branch February 19, 2019 19:46
coenttb referenced this pull request in coenttb/swift-renderable Jul 22, 2025
* Fix summary and legend tags

* Require as first element

* Fix

* More tests
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.

3 participants