Skip to content

Commit 21b60b4

Browse files
committed
Revert to using simple equals
These identifiers have been parsed case-insensitively so they’re lower-case either way
1 parent 30ada53 commit 21b60b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private function parseAtRule() {
8787
$this->consume('@');
8888
$sIdentifier = $this->parseIdentifier();
8989
$this->consumeWhiteSpace();
90-
if ($this->streql($sIdentifier, 'import')) {
90+
if ($sIdentifier === 'import') {
9191
$oLocation = $this->parseURLValue();
9292
$this->consumeWhiteSpace();
9393
$sMediaQuery = null;
@@ -96,7 +96,7 @@ private function parseAtRule() {
9696
}
9797
$this->consume(';');
9898
return new Import($oLocation, $sMediaQuery);
99-
} else if ($this->streql($sIdentifier, 'charset')) {
99+
} else if ($sIdentifier === 'charset') {
100100
$sCharset = $this->parseStringValue();
101101
$this->consumeWhiteSpace();
102102
$this->consume(';');
@@ -110,7 +110,7 @@ private function parseAtRule() {
110110
$this->consumeWhiteSpace();
111111
$this->parseList($oResult);
112112
return $oResult;
113-
} else if ($this->streql($sIdentifier, 'namespace')) {
113+
} else if ($sIdentifier === 'namespace') {
114114
$sPrefix = null;
115115
$mUrl = $this->parsePrimitiveValue();
116116
if (!$this->comes(';')) {

0 commit comments

Comments
 (0)