Skip to content

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

@fred-wang

Description

@fred-wang

"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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions