Skip to content
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

DT tag should allow more child types (should not be PhrasingContent) #217

Open
owengray-google opened this issue May 12, 2023 · 0 comments

Comments

@owengray-google
Copy link

According to the HTML spec (https://html.spec.whatwg.org/#the-dt-element), the dt element is "Categories: None" and "Content model: Flow content, but with no header, footer, sectioning content, or heading content descendants."
However, in kotlinx.html, dt is HtmlInlineTag, which is PhrasingContent, meaning it only supports children that can exist in PhrasingContent contexts.

This can currently be worked around with unsafe, but that should not be necessary.

(Conceptually, Phrasing content is a subset of Flow content, and there are things (like dt) that don't match any of the content types--I think there is an issue with the overall hierarchy, but that is beyond the scope of this bug.)

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

No branches or pull requests

1 participant