Skip to content

Commit 5fc6326

Browse files
committed
Fix typos in comments
1 parent 1fd419b commit 5fc6326

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
@@ -502,7 +502,7 @@ public static function isA($name, $mask)
502502
*/
503503
public static function isHtml5Element($name)
504504
{
505-
// html5 element names are case insensetitive. Forcing lowercase for the check.
505+
// html5 element names are case insensitive. Forcing lowercase for the check.
506506
// Do we need this check or will all data passed here already be lowercase?
507507
return isset(static::$html5[strtolower($name)]);
508508
}
@@ -517,7 +517,7 @@ public static function isHtml5Element($name)
517517
*/
518518
public static function isMathMLElement($name)
519519
{
520-
// MathML is case-sensetitive unlike html5 elements.
520+
// MathML is case-sensitive unlike html5 elements.
521521
return isset(static::$mathml[$name]);
522522
}
523523

@@ -531,7 +531,7 @@ public static function isMathMLElement($name)
531531
*/
532532
public static function isSvgElement($name)
533533
{
534-
// SVG is case-sensetitive unlike html5 elements.
534+
// SVG is case-sensitive unlike html5 elements.
535535
return isset(static::$svg[$name]);
536536
}
537537

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)