-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Node.div API based on a protocol
Base the `Node.div` API on a new `HTMLDividableContext` protocol, which enables that API to be shared between `HTML.BodyContext` and `HTML.DescriptionListContext`. While this does come with a minor downside of now requiring an explicit context whenever a `div` node is created as a stand-alone value (when using `Node.div` directly, without defining any child nodes within it), in practice that should be very rare, as `div` nodes are most likely placed within a known context (such as within a `body` node, or another node that inherits `HTML.BodyContext` from its parent).
- Loading branch information
1 parent
e1e9270
commit 47f5df2
Showing
4 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters