Skip to content

Commit e3d1145

Browse files
authored
Merge pull request #156 from stof/fix_typo
Fix typos in comments
2 parents 054b1fe + 5fc6326 commit e3d1145

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/HTML5/Elements.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class Elements
352352
);
353353

354354
/**
355-
* Some attributes in SVG are case sensetitive.
355+
* Some attributes in SVG are case sensitive.
356356
*
357357
* This map contains key/value pairs with the key as the lowercase attribute
358358
* name and the value with the correct casing.
@@ -423,7 +423,7 @@ class Elements
423423
);
424424

425425
/**
426-
* Some SVG elements are case sensetitive.
426+
* Some SVG elements are case sensitive.
427427
* This map contains these.
428428
*
429429
* The map contains key/value store of the name is lowercase as the keys and
@@ -498,7 +498,7 @@ public static function isA($name, $mask)
498498
*/
499499
public static function isHtml5Element($name)
500500
{
501-
// html5 element names are case insensetitive. Forcing lowercase for the check.
501+
// html5 element names are case insensitive. Forcing lowercase for the check.
502502
// Do we need this check or will all data passed here already be lowercase?
503503
return isset(static::$html5[strtolower($name)]);
504504
}
@@ -513,7 +513,7 @@ public static function isHtml5Element($name)
513513
*/
514514
public static function isMathMLElement($name)
515515
{
516-
// MathML is case-sensetitive unlike html5 elements.
516+
// MathML is case-sensitive unlike html5 elements.
517517
return isset(static::$mathml[$name]);
518518
}
519519

@@ -527,7 +527,7 @@ public static function isMathMLElement($name)
527527
*/
528528
public static function isSvgElement($name)
529529
{
530-
// SVG is case-sensetitive unlike html5 elements.
530+
// SVG is case-sensitive unlike html5 elements.
531531
return isset(static::$svg[$name]);
532532
}
533533

test/HTML5/ElementsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function testIsMathMLElement()
269269
foreach ($this->mathmlElements as $element) {
270270
$this->assertTrue(Elements::isMathMLElement($element), 'MathML element test failed on: ' . $element);
271271

272-
// MathML is case sensetitive so these should all fail.
272+
// MathML is case sensitive so these should all fail.
273273
$this->assertFalse(Elements::isMathMLElement(strtoupper($element)), 'MathML element test failed on: ' . strtoupper($element));
274274
}
275275

@@ -288,7 +288,7 @@ public function testIsSvgElement()
288288
foreach ($this->svgElements as $element) {
289289
$this->assertTrue(Elements::isSvgElement($element), 'SVG element test failed on: ' . $element);
290290

291-
// SVG is case sensetitive so these should all fail.
291+
// SVG is case sensitive so these should all fail.
292292
$this->assertFalse(Elements::isSvgElement(strtoupper($element)), 'SVG element test failed on: ' . strtoupper($element));
293293
}
294294

@@ -313,15 +313,15 @@ public function testIsElement()
313313
foreach ($this->mathmlElements as $element) {
314314
$this->assertTrue(Elements::isElement($element), 'MathML element test failed on: ' . $element);
315315

316-
// MathML is case sensetitive so these should all fail.
316+
// MathML is case sensitive so these should all fail.
317317
$this->assertFalse(Elements::isElement(strtoupper($element)), 'MathML element test failed on: ' . strtoupper($element));
318318
}
319319

320320
foreach ($this->svgElements as $element) {
321321
$this->assertTrue(Elements::isElement($element), 'SVG element test failed on: ' . $element);
322322

323-
// SVG is case sensetitive so these should all fail. But, there is duplication
324-
// html5 and SVG. Since html5 is case insensetitive we need to make sure
323+
// SVG is case sensitive so these should all fail. But, there is duplication
324+
// html5 and SVG. Since html5 is case insensitive we need to make sure
325325
// it's not a html5 element first.
326326
if (! in_array($element, $this->html5Elements)) {
327327
$this->assertFalse(Elements::isElement(strtoupper($element)), 'SVG element test failed on: ' . strtoupper($element));

test/HTML5/Html5Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function testSvg()
237237
$this->assertFalse($svg->hasAttribute('viewbox'));
238238

239239
// Test a mixed case tag.
240-
// Note: getElementsByTagName is not case sensetitive.
240+
// Note: getElementsByTagName is not case sensitive.
241241
$list = $dom->getElementsByTagName('textPath');
242242
$this->assertNotEmpty($list->length);
243243
$textPath = $list->item(0);

0 commit comments

Comments
 (0)