Skip to content

Add MathML Core elements#399

Merged
hayleigh-dot-dev merged 8 commits intolustre-labs:mainfrom
SaphiraKai:main
Dec 4, 2025
Merged

Add MathML Core elements#399
hayleigh-dot-dev merged 8 commits intolustre-labs:mainfrom
SaphiraKai:main

Conversation

@SaphiraKai
Copy link
Contributor

I've tried my best to match the style of the rest of the codebase, but feel free to make any changes!

@SaphiraKai SaphiraKai marked this pull request as draft November 7, 2025 15:38
@SaphiraKai
Copy link
Contributor Author

SaphiraKai commented Nov 7, 2025

Never make a pull request without sleeping on it first. 😂

I believe a lot of these elements are only intended to have text nodes as children, not any arbitrary element. I'm going to look through more closely now and determine which functions could take a string as their second argument, rather than having users write html.text("...") over and over again needlessly.

@SaphiraKai
Copy link
Contributor Author

SaphiraKai commented Dec 1, 2025

I'm well overdue to follow up here, but I believe it is in fact ready to merge.

Should I git squash first?

@SaphiraKai SaphiraKai marked this pull request as ready for review December 1, 2025 20:06
@hayleigh-dot-dev
Copy link
Collaborator

I squash all PRs anyway, no need to worry about that ^.^

@hayleigh-dot-dev
Copy link
Collaborator

I'll do a quick check in the morning to make sure all the elements that take children make sense but otherwise looks good to me! thanks for adding this.

// MATHML ELEMENTS: GROUPING ---------------------------------------------------

///
pub fn maction(
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like according to mdn this element is deprecated. Let's remove it so folks don't use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I missed that because I was only referencing the W3C technical report. Oops!

I've removed it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Easy miss, the note on the technical report says that UAs only implementing MathML Core can ignore this in favour of javascript etc which everyone but safarai (interestingly) does.

@hayleigh-dot-dev hayleigh-dot-dev merged commit 6a2100e into lustre-labs:main Dec 4, 2025
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