Skip to content

Remove some deprecated attributes #5

Closed

Description

@fred-wang

This proposal is to remove the following attributes:

  1. general attribute: other.
  2. math attributes: macros, mode.
  3. mglyph attributes: fontfamily, index. See also Remove/Deprecate mglyph element #25
  4. token elements attributes: fontfamily, fontweight, fontstyle, fontsize, color, background. See also Simplification of the mstyle element #1
  5. deprecated namedspace attributes: veryverythinmathspace,
    verythinmathspace, thinmathspace, mediummathspace, thickmathspace,
    verythickmathspace, veryverythickmathspace. https://mathml-refresh.github.io/mathml/chapter3.html#id.3.3.4.2.1 See also Simplification of the mstyle element #1 and Deprecate/Remove namedspaces length values #75

Math WG thread: https://lists.w3.org/Archives/Public/www-math/2016Aug/0008.html

Activity

  1. physikerwelt commented on Feb 19, 2019

    @physikerwelt
    Member
    1. Should we suggest using data- instead?
  2. added
    MathML 4
    on Feb 22, 2019
  3. fred-wang commented on Feb 22, 2019

    @fred-wang
    Author

    These attributes are currently not in MathML Core, so this is just for MathML 4.

  4. fred-wang commented on Mar 14, 2019

    @fred-wang
    Author

    cc @rwlbuis, @emilio

    We agreed on 2019-02-25 that currently deprecated attributes should not go into MathML Core: https://lists.w3.org/Archives/Public/public-mathml4/2019Feb/0048.html

    I checked the spec & schema and cannot find any of the attributes listed in #5 (comment)

    We still need to:

    Note: some deprecated attributes might still be used like font or colors (e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1027354 ). Others have never been implemented or have already been removed without complaints ( e.g. namedspace attributes ).

    Also, "mathvariant" is supposed to take precedent over the deprecated attributes "fontweight" and "fontstyle". In term of CSS, that means that mathvariant has to reset font-style/font-weight to avoid weird results. There are some hacks in Gecko/Stylo that can be removed once we get rid of "fontweight" and "fontstyle".

  5. added
    compatibility
    on Mar 20, 2019
  6. fred-wang commented on Mar 22, 2019

    @fred-wang
    Author

    From https://lists.w3.org/Archives/Public/public-mathml4/2019Mar/0026.html

    1. Remove "other" from MathML full (maybe suggest data-*)
    2. Remove macros, mode from MathML full
    3. Remove fontfamily, index from MathML full
    4. Deprecate fontfamily, fontweight, fontstyle, fontsize, color, background from MathML full
    5. Remove named attributes thinmathspace etc
  7. fred-wang commented on May 16, 2019

    @fred-wang
    Author

    Resolution:
    #5 (comment)

    Specification:
    Removal/Deprecation from full, with extra explanations.

    Implementation:
    WebKit: https://bugs.webkit.org/show_bug.cgi?id=197492
    Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1548524
    Not implemented in Chromium.

    Polyfill:
    TBD

    Tests:

    • Remove WPT tests or check that these values are not supported.
  8. added
    need polyfill
    need specification update
    need tests
    on May 16, 2019
  9. fred-wang commented on Jun 3, 2019

    @fred-wang
    Author

    These are not in core per #5 (comment) ; @davidcarlisle please check the full spec and do the necessary change, if any.

  10. removed
    need specification update
    on Jun 5, 2019
  11. fred-wang commented on Aug 15, 2019

    @fred-wang
    Author

    The mode attribute has been removed from Gecko:

    https://bugzilla.mozilla.org/show_bug.cgi?id=1573438

    (WebKit has never implemented it)

    Polyfill:

    window.addEventListener("load", function() {
        const namespaceURI = "http://www.w3.org/1998/Math/MathML";
        Array.from(document.body.getElementsByTagNameNS(namespaceURI, "math")).
            forEach(math => {
                if (math.hasAttribute("mode")) {
                    var value = math.getAttribute("mode").replace("display", "block");
                    math.removeAttribute("mode");
                    if (!math.hasAttribute("display"))
                        math.setAttribute("display", value);
                }
            });
    });
    
  12. 10 remaining items

  13. removed
    need tests
    on Sep 17, 2019
  14. removed
    need polyfill
    on May 20, 2020
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 Corecompatibilityneed specification update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions