Skip to content

drop malignmark/maligngroup - #585

Merged
davidcarlisle merged 3 commits into
mainfrom
malign-elements
Oct 2, 2026
Merged

davidcarlisle merged 3 commits into
mainfrom
malign-elements

Conversation

@davidcarlisle

Copy link
Copy Markdown
Collaborator

As agreed in advance, this drops <maligngroup> and <malignmark> so the only references in the spec are in the changes appendix and in the schema in appendix A where they have been moved to the legacy schema by the matching commit
w3c/mathml-schema@cb2943d

The example of using space like elements has been changed to use mphantom rather than malignmark. (The original example probably should be included in the polyfill tests)

@davidcarlisle
davidcarlisle requested a review from NSoiffer August 22, 2026 09:15
@davidcarlisle davidcarlisle self-assigned this Aug 22, 2026
Comment thread src/changes.html Resolved
Comment thread src/presentation-markup.html Resolved
Comment thread src/presentation-markup.html Resolved
Comment thread src/presentation-markup.html Resolved

@dginev dginev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you.

Comment thread src/presentation-markup.html Outdated
&lt;msup&gt;
&lt;mi&gt; x &lt;/mi&gt;
&lt;malignmark edge="right"/&gt;
&lt;mphantom"&gt;&lt;mo&gt;(&lt;/mo&gt;&lt;/mphantom"&gt;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not related to the changes intended by this PR, but maybe we should review the "space-like" interaction with mphantom.

In the live text we have:

an mstyle, mphantom, or mpadded element, all of whose direct sub-expressions are space-like;

and the ( paren mo introduced in the example here isn't space-like.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@dginev oops:-)

Given that this example is in a section called Legal grouping of space-like elements I think we should use something space like.

How about

<msup>
  <mi>x</mi>
  <mspace width="1em"/>
  <mn>2</mn>
</msup>

as the "bad" example, fixed by an example with an mrow around x and the space?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh I guess you meant consider making mphantom ( space-like, that was discussed at some length in previous eras and mathml3 (and I think earlier) explicitly calls out that mphantom isn't space like unless its children are so that x mphantom+ y gets the same spacing as x + y but with an invisible + if it were space like it would lose the binary operator spacing. That was the argument back then at least....

@davidcarlisle
davidcarlisle merged commit 1c10080 into main Oct 2, 2026
1 check passed
@davidcarlisle
davidcarlisle deleted the malign-elements branch October 2, 2026 16:55
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