w3c / w3c/mathml-core

Simplify whitespace collapsing/trimming for text nodes ; Support in Core?

Open
#272 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

compatibility css / html5 MathML 4 MathML Core need polyfill need tests
Dominant language
HTML
Stars
56
Forks
20
PR merge metrics
No merged PRs in 30d

Description

"Whitespace collapsing/trimming
https://www.w3.org/TR/MathML/chapter2.html#fund.collapse

Whitespace collapsing is consistent with the default CSS property
"white-space" and people are familiar with it.

Removing "whitespace at the beginning and end of the content" is less
expected. Gecko has some code to handle this but it would be very
helpful to avoid this additional complexity. WebKit does not handle it
at the moment and it's not clear it's worth doing it... Except in the
MathML spec/test, everybody seems to just write ( and not
( . Can we deprecate this behavior in MathML4? Or maybe you should
work with the HTML5 WG to define such collapsing rules during document
parsing, so that the MathML rendering code no longer need to handle it?"

original report: https://lists.w3.org/Archives/Public/www-math/2016Aug/0000.html

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked MathML chapter 2 whitespace-collapsing section and compare it with the original www-math report. Review the current MathML Core behavior and determine whether trimming should be simplified, deprecated, or defined during HTML parsing. Done means a documented resolution for the Core specification and its expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.