Skip to content

Accept HTML Whitespace in Parser Tags#1521

Merged
dpvc merged 1 commit into
mathjax:developfrom
HeRaNO:fix-crlf
Jul 17, 2026
Merged

Accept HTML Whitespace in Parser Tags#1521
dpvc merged 1 commit into
mathjax:developfrom
HeRaNO:fix-crlf

Conversation

@HeRaNO

@HeRaNO HeRaNO commented Jul 3, 2026

Copy link
Copy Markdown

Allow the LiteParser tag patterns to recognize CR, tab, and form-feed as whitespace [1] between tag names and attributes. This fixes serialized HTML with CRLF line breaks inside tags, such as output generated on Windows.

[1] https://infra.spec.whatwg.org/#ascii-whitespace

@HeRaNO
HeRaNO marked this pull request as draft July 3, 2026 05:08
@HeRaNO
HeRaNO marked this pull request as ready for review July 3, 2026 05:11
@HeRaNO

HeRaNO commented Jul 6, 2026

Copy link
Copy Markdown
Author

@dpvc Hi! Would you please consider this PR? ASCII whitespace will affect the tag parsing on the Windows platform.

@dpvc

dpvc commented Jul 7, 2026

Copy link
Copy Markdown
Member

@HeRaNO, your PR arrived last Friday morning while we were putting together the v4.1.3 release. This weekend was the 4th of July holiday, here, so not much got done during that. I was planning to discuss your PR during our weekly developers' meeting on Thursday.

Pinging us after three days (and those being over a holiday weekend) is too soon. We are aware of your PR and the issue you present (and the new post on the issue tracker), and will process it in due course as we are able. Reminders are not necessary, and actually slow down the process (e.g., I have to take time to write a response like).

Patience is a virtue.

@dpvc
dpvc merged commit 9ef060f into mathjax:develop Jul 17, 2026
@dpvc

dpvc commented Jul 17, 2026

Copy link
Copy Markdown
Member

Thank you for your contribution.

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.

2 participants