Skip to content
  • Frederic Wang's avatar
    Bug 1548524 - Remove attributes deprecated from MathML3. r=emilio · 3f8a2878
    Frederic Wang authored
    See https://github.com/mathml-refresh/mathml/issues/5#issuecomment-475506856
    and https://groups.google.com/forum/#!topic/mozilla.dev.platform/kl5c87mBlO0
    
    This patch introduces a new preference
    mathml.deprecated_style_attributes.disabled in order to disable legacy support
    for attributes background, color, fontfamily, fontsize, fontstyle and
    fontweight. Note that xlink:href will be handled separately in bug 1575870.
    
    * A new counter and deprecation message is introduced for these attributes.
      In nsMathMLElement, the old WarnDeprecated calls are replaced with a single
      call to WarnOnceAbout for the deprecate attributes. Notice that for some
      reason, the color attribute used to send warning in both ParseAttribute and
      MapMathMLAttributesInto.
    * sMtableStyles is removed and replaced with a simple comparison.
    * sMathML3Attributes is split into two tables: one for script attributes which
      will be handled in bug 1548471 and one for style attributes, handled here.
      The attributes in this second table is now ignored when the feature flag is
      disabled.
    * test_bug553917.html is updated so that it no longer checks the old warning
      messages for these attributes. New warning messages have been verified
      manually.
    * Reftests checking support for these attributes are run with the support
      enabled.
    * Finally, WPT tests are run with the support disabled and a new test
      is added to verify that these attributes are no longer mapped to CSS.
    
    Differential Revision: https://phabricator.services.mozilla.com/D43111
    
    --HG--
    extra : moz-landing-system : lando
    3f8a2878