| @@ -316,8 +316,9 @@ | ||
| 316 | 316 | 'feConvolveMatrix' => 1, |
| 317 | 317 | 'feDiffuseLighting' => 1, |
| 318 | 318 | 'feDisplacementMap' => 1, |
| 319 | 319 | 'feDistantLight' => 1, |
| 320 | + 'feDropShadow' => 1, | |
| 320 | 321 | 'feFlood' => 1, |
| 321 | 322 | 'feFuncA' => 1, |
| 322 | 323 | 'feFuncB' => 1, |
| 323 | 324 | 'feFuncG' => 1, |
| @@ -390,9 +391,9 @@ | ||
| 390 | 391 | * |
| 391 | 392 | * The map contains key/value store of the name is lowercase as the keys and |
| 392 | 393 | * the correct casing as the value. |
| 393 | 394 | */ |
| 394 | - public static $svgCaseSensitiveElementMap = array('altglyph' => 'altGlyph', 'altglyphdef' => 'altGlyphDef', 'altglyphitem' => 'altGlyphItem', 'animatecolor' => 'animateColor', 'animatemotion' => 'animateMotion', 'animatetransform' => 'animateTransform', 'clippath' => 'clipPath', 'feblend' => 'feBlend', 'fecolormatrix' => 'feColorMatrix', 'fecomponenttransfer' => 'feComponentTransfer', 'fecomposite' => 'feComposite', 'feconvolvematrix' => 'feConvolveMatrix', 'fediffuselighting' => 'feDiffuseLighting', 'fedisplacementmap' => 'feDisplacementMap', 'fedistantlight' => 'feDistantLight', 'feflood' => 'feFlood', 'fefunca' => 'feFuncA', 'fefuncb' => 'feFuncB', 'fefuncg' => 'feFuncG', 'fefuncr' => 'feFuncR', 'fegaussianblur' => 'feGaussianBlur', 'feimage' => 'feImage', 'femerge' => 'feMerge', 'femergenode' => 'feMergeNode', 'femorphology' => 'feMorphology', 'feoffset' => 'feOffset', 'fepointlight' => 'fePointLight', 'fespecularlighting' => 'feSpecularLighting', 'fespotlight' => 'feSpotLight', 'fetile' => 'feTile', 'feturbulence' => 'feTurbulence', 'foreignobject' => 'foreignObject', 'glyphref' => 'glyphRef', 'lineargradient' => 'linearGradient', 'radialgradient' => 'radialGradient', 'textpath' => 'textPath'); | |
| 395 | + public static $svgCaseSensitiveElementMap = array('altglyph' => 'altGlyph', 'altglyphdef' => 'altGlyphDef', 'altglyphitem' => 'altGlyphItem', 'animatecolor' => 'animateColor', 'animatemotion' => 'animateMotion', 'animatetransform' => 'animateTransform', 'clippath' => 'clipPath', 'feblend' => 'feBlend', 'fecolormatrix' => 'feColorMatrix', 'fecomponenttransfer' => 'feComponentTransfer', 'fecomposite' => 'feComposite', 'feconvolvematrix' => 'feConvolveMatrix', 'fediffuselighting' => 'feDiffuseLighting', 'fedisplacementmap' => 'feDisplacementMap', 'fedistantlight' => 'feDistantLight', 'fedropshadow' => 'feDropShadow', 'feflood' => 'feFlood', 'fefunca' => 'feFuncA', 'fefuncb' => 'feFuncB', 'fefuncg' => 'feFuncG', 'fefuncr' => 'feFuncR', 'fegaussianblur' => 'feGaussianBlur', 'feimage' => 'feImage', 'femerge' => 'feMerge', 'femergenode' => 'feMergeNode', 'femorphology' => 'feMorphology', 'feoffset' => 'feOffset', 'fepointlight' => 'fePointLight', 'fespecularlighting' => 'feSpecularLighting', 'fespotlight' => 'feSpotLight', 'fetile' => 'feTile', 'feturbulence' => 'feTurbulence', 'foreignobject' => 'foreignObject', 'glyphref' => 'glyphRef', 'lineargradient' => 'linearGradient', 'radialgradient' => 'radialGradient', 'textpath' => 'textPath'); | |
| 395 | 396 | /** |
| 396 | 397 | * Check whether the given element meets the given criterion. |
| 397 | 398 | * |
| 398 | 399 | * Example: |
| @@ -420,9 +421,9 @@ | ||
| 420 | 421 | public static function isHtml5Element($name) |
| 421 | 422 | { |
| 422 | 423 | // html5 element names are case insensitive. Forcing lowercase for the check. |
| 423 | 424 | // Do we need this check or will all data passed here already be lowercase? |
| 424 | - return isset(static::$html5[\strtolower($name)]); | |
| 425 | + return isset(static::$html5[strtolower($name)]); | |
| 425 | 426 | } |
| 426 | 427 | /** |
| 427 | 428 | * Test if an element name is a valid MathML presentation element. |
| 428 | 429 | * |
| @@ -488,9 +489,9 @@ | ||
| 488 | 489 | * @return string the normalized form of the element name. |
| 489 | 490 | */ |
| 490 | 491 | public static function normalizeSvgElement($name) |
| 491 | 492 | { |
| 492 | - $name = \strtolower($name); | |
| 493 | + $name = strtolower($name); | |
| 493 | 494 | if (isset(static::$svgCaseSensitiveElementMap[$name])) { |
| 494 | 495 | $name = static::$svgCaseSensitiveElementMap[$name]; |
| 495 | 496 | } |
| 496 | 497 | return $name; |
| @@ -503,9 +504,9 @@ | ||
| 503 | 504 | * @return string The normalized form of the attribute name. |
| 504 | 505 | */ |
| 505 | 506 | public static function normalizeSvgAttribute($name) |
| 506 | 507 | { |
| 507 | - $name = \strtolower($name); | |
| 508 | + $name = strtolower($name); | |
| 508 | 509 | if (isset(static::$svgCaseSensitiveAttributeMap[$name])) { |
| 509 | 510 | $name = static::$svgCaseSensitiveAttributeMap[$name]; |
| 510 | 511 | } |
| 511 | 512 | return $name; |
| @@ -519,9 +520,9 @@ | ||
| 519 | 520 | * @return string The normalized form of the attribute name. |
| 520 | 521 | */ |
| 521 | 522 | public static function normalizeMathMlAttribute($name) |
| 522 | 523 | { |
| 523 | - $name = \strtolower($name); | |
| 524 | + $name = strtolower($name); | |
| 524 | 525 | // Only one attribute has a mixed case form for MathML. |
| 525 | 526 | if ('definitionurl' === $name) { |
| 526 | 527 | $name = 'definitionURL'; |
| 527 | 528 | } |