Skip to content

Align definition of space characters with HTML5  #21

Closed

Description

@fred-wang

"In MathML, white spaces are understood as XML spaces (U+0020), tabs
(U+0009), line feeds (U+000A), and carriage returns (U+000D) while HTML5
also includes "form feed" (U+000C).

https://www.w3.org/TR/html5/infrastructure.html#space-character"

originally reported at https://lists.w3.org/Archives/Public/www-math/2016Aug/0000.html

cc @rwlbuis

Activity

  1. added
    MathML Core
    MathML 4
    on Feb 22, 2019
  2. fred-wang commented on Feb 22, 2019

    @fred-wang
    Author

    This is for MathML 4 but I think we eventually want to move the space definition to MathML Core.

  3. added
    css / html5
    on Feb 22, 2019
  4. davidcarlisle commented on Feb 22, 2019

    @davidcarlisle
    Collaborator

    If using an html parser we should match html for whitespace, also I think we could probably always include U+000C in any mathml-specified white space handling for whitespace collapse etc, however any change in wording here needs to accommodate xml parsing, we can't can't change xml parse rules so for example

    <mfrac> U+000C <mn>1</mn> U+000C <mn>1</mn> </mfrac>

    is going to parse as text content in an mfrac if using an xml parser, and so be invalid.

  5. NSoiffer commented on Mar 11, 2019

    @NSoiffer
    Contributor

    What what it's worth... according to this whatwg doc, "Form feed characters are discouraged in XML 1.1". So saying don't use U+000C shouldn't be a big deal.

  6. added
    compatibility
    on Mar 20, 2019
  7. NSoiffer commented on Apr 29, 2019

    @NSoiffer
    Contributor

    Resolved in 29/4/19 meeting to align with HTML5.

  8. fred-wang commented on May 2, 2019

    @fred-wang
    Author

    cc @bkardell

    I reopened this since we to update the specs and to write WPT tests. I expect browsers already treat spaces as HTML5.

  9. added
    need tests
    on May 6, 2019
  10. added
    need resolution
    need specification update
    and removed
    need resolution
    on May 16, 2019
  11. fred-wang commented on May 16, 2019

    @fred-wang
    Author
  12. fred-wang commented on Jun 14, 2019

    @fred-wang
    Author

    CSS definition is "A newline, U+0009 CHARACTER TABULATION, or U+0020 SPACE. "
    https://www.w3.org/TR/css-syntax/#whitespace

    And newline is
    U+000A LINE FEED. Note that U+000D CARRIAGE RETURN and U+000C FORM FEED are not included in this definition, as they are converted to U+000A LINE FEED during preprocessing.

    So it seems CSS agrees with HTML, if we take preprocessing into account.

  13. removed
    need tests
    on Sep 16, 2019
  14. fred-wang commented on Sep 16, 2019

    @fred-wang
    Author

    I believe in MathML Core this is only used for attribute trimming ( w3c/mathml-core#165 ), menclose@notation ( #104, #105 ) and maybe text nodes ( w3c/mathml-core#272 ). So I think this is already covered by other issues and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MathML 4MathML Corecompatibilitycss / html5need specification update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions