-
Notifications
You must be signed in to change notification settings - Fork 63
Allow <div> & script-supporting element in <dl>
#344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the HTML type definitions to align with the WHATWG HTML specification for the <dl> (description list) element, allowing more flexible content models as specified in the HTML standard.
Key changes:
- Introduces a new
script_supportingtype for script-supporting elements (<script>and<template>) - Allows
<div>and script-supporting elements as direct children of<dl>elements - Allows
<dd>and<dt>elements as children of<div>elements (specifically when<div>is used within<dl>)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| lib/html_types.mli | Adds script_supporting type and updates dl_content, dl_content_fun, div_content, and div_content_fun to implement the WHATWG HTML spec for description lists |
| CHANGES.md | Documents the changes in the changelog |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5083f92 to
ac57f24
Compare
> Content model: > Either: Zero or more groups each consisting of one or more dt elements followed by one or more dd elements, optionally intermixed with script-supporting elements. > Or: One or more div elements, optionally intermixed with script-supporting elements. — https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element
|
ping @smorimoto @Drup … why do I need to be concerned with Opam Docs? I don’t understand what CI is trying to tell me & I can’t just run it locally since it’s tied up in GitHub Action dependencies. |
https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element
Description list allow
<div>& script-supporting elements—not just<dd>&<dt>elements.1
Footnotes
Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute. ↩