diff options
-rw-r--r-- | src/HTML5/Elements.php | 10 | ||||
-rw-r--r-- | test/HTML5/ElementsTest.php | 10 | ||||
-rw-r--r-- | test/HTML5/Html5Test.php | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php index 511da9d..16d09f3 100644 --- a/src/HTML5/Elements.php +++ b/src/HTML5/Elements.php @@ -352,7 +352,7 @@ class Elements ); /** - * Some attributes in SVG are case sensetitive. + * Some attributes in SVG are case sensitive. * * This map contains key/value pairs with the key as the lowercase attribute * name and the value with the correct casing. @@ -423,7 +423,7 @@ class Elements ); /** - * Some SVG elements are case sensetitive. + * Some SVG elements are case sensitive. * This map contains these. * * The map contains key/value store of the name is lowercase as the keys and @@ -502,7 +502,7 @@ class Elements */ public static function isHtml5Element($name) { - // html5 element names are case insensetitive. Forcing lowercase for the check. + // html5 element names are case insensitive. Forcing lowercase for the check. // Do we need this check or will all data passed here already be lowercase? return isset(static::$html5[strtolower($name)]); } @@ -517,7 +517,7 @@ class Elements */ public static function isMathMLElement($name) { - // MathML is case-sensetitive unlike html5 elements. + // MathML is case-sensitive unlike html5 elements. return isset(static::$mathml[$name]); } @@ -531,7 +531,7 @@ class Elements */ public static function isSvgElement($name) { - // SVG is case-sensetitive unlike html5 elements. + // SVG is case-sensitive unlike html5 elements. return isset(static::$svg[$name]); } diff --git a/test/HTML5/ElementsTest.php b/test/HTML5/ElementsTest.php index d426aef..e0a8905 100644 --- a/test/HTML5/ElementsTest.php +++ b/test/HTML5/ElementsTest.php @@ -269,7 +269,7 @@ class ElementsTest extends TestCase foreach ($this->mathmlElements as $element) { $this->assertTrue(Elements::isMathMLElement($element), 'MathML element test failed on: ' . $element); - // MathML is case sensetitive so these should all fail. + // MathML is case sensitive so these should all fail. $this->assertFalse(Elements::isMathMLElement(strtoupper($element)), 'MathML element test failed on: ' . strtoupper($element)); } @@ -288,7 +288,7 @@ class ElementsTest extends TestCase foreach ($this->svgElements as $element) { $this->assertTrue(Elements::isSvgElement($element), 'SVG element test failed on: ' . $element); - // SVG is case sensetitive so these should all fail. + // SVG is case sensitive so these should all fail. $this->assertFalse(Elements::isSvgElement(strtoupper($element)), 'SVG element test failed on: ' . strtoupper($element)); } @@ -313,15 +313,15 @@ class ElementsTest extends TestCase foreach ($this->mathmlElements as $element) { $this->assertTrue(Elements::isElement($element), 'MathML element test failed on: ' . $element); - // MathML is case sensetitive so these should all fail. + // MathML is case sensitive so these should all fail. $this->assertFalse(Elements::isElement(strtoupper($element)), 'MathML element test failed on: ' . strtoupper($element)); } foreach ($this->svgElements as $element) { $this->assertTrue(Elements::isElement($element), 'SVG element test failed on: ' . $element); - // SVG is case sensetitive so these should all fail. But, there is duplication - // html5 and SVG. Since html5 is case insensetitive we need to make sure + // SVG is case sensitive so these should all fail. But, there is duplication + // html5 and SVG. Since html5 is case insensitive we need to make sure // it's not a html5 element first. if (! in_array($element, $this->html5Elements)) { $this->assertFalse(Elements::isElement(strtoupper($element)), 'SVG element test failed on: ' . strtoupper($element)); diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index 77643c4..7873cd9 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -237,7 +237,7 @@ class Html5Test extends TestCase $this->assertFalse($svg->hasAttribute('viewbox')); // Test a mixed case tag. - // Note: getElementsByTagName is not case sensetitive. + // Note: getElementsByTagName is not case sensitive. $list = $dom->getElementsByTagName('textPath'); $this->assertNotEmpty($list->length); $textPath = $list->item(0); |