Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Elements.php

function Elements::normalizeMathMlAttribute

Normalize a MathML attribute name to its proper case and form. Note, all MathML element names are lowercase.

Parameters

string $name The name of the attribute.:

Return value

string The normalized form of the attribute name.

2 calls to Elements::normalizeMathMlAttribute()
DOMTreeBuilder::startTag in vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php
Process the start tag.
OutputRules::attrs in vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php

File

vendor/masterminds/html5/src/HTML5/Elements.php, line 626

Class

Elements
This class provides general information about HTML5 elements, including syntactic and semantic issues. Parsers and serializers can use this class as a reference point for information about the rules of various HTML5 elements.

Namespace

Masterminds\HTML5

Code

public static function normalizeMathMlAttribute($name) {
    $name = strtolower($name);
    // Only one attribute has a mixed case form for MathML.
    if ('definitionurl' === $name) {
        $name = 'definitionURL';
    }
    return $name;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal