Skip to content

Commit a41aff5

Browse files
committed
Remove more ancient stuff
1 parent fb085b8 commit a41aff5

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

Diff for: src/Parsing/ParserState.php

-7
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,6 @@ public function parseIdentifier($ignoreCase = true)
150150
public function parseCharacter($isForIdentifier)
151151
{
152152
if ($this->peek() === '\\') {
153-
if (
154-
$isForIdentifier && $this->parserSettings->lenientParsing
155-
&& ($this->comes('\\0') || $this->comes('\\9'))
156-
) {
157-
// Non-strings can contain \0 or \9 which is an IE hack supported in lenient parsing.
158-
return null;
159-
}
160153
$this->consume('\\');
161154
if ($this->comes('\\n') || $this->comes('\\r')) {
162155
return '';

Diff for: src/Value/Value.php

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static function parseValue(ParserState $parserState, array $aListDelimite
5050
while (
5151
!($parserState->comes('}') || $parserState->comes(';') || $parserState->comes('!')
5252
|| $parserState->comes(')')
53-
|| $parserState->comes('\\')
5453
|| $parserState->isEnd())
5554
) {
5655
if (\count($aStack) > 0) {

Diff for: tests/ParserTest.php

-22
Original file line numberDiff line numberDiff line change
@@ -1060,28 +1060,6 @@ public function unexpectedTokenExceptionLineNo(): void
10601060
}
10611061
}
10621062

1063-
/**
1064-
* @test
1065-
*/
1066-
public function ieHacksCauseExceptionInStrictMode(): void
1067-
{
1068-
$this->expectException(UnexpectedTokenException::class);
1069-
1070-
self::parsedStructureForFile('ie-hacks', Settings::create()->beStrict());
1071-
}
1072-
1073-
/**
1074-
* @test
1075-
*/
1076-
public function ieHacksArePartiallyRemovedInLenientMode(): void
1077-
{
1078-
$document = self::parsedStructureForFile('ie-hacks', Settings::create()->withLenientParsing(true));
1079-
1080-
$expected = 'p {padding-right: .75rem;background-image: none;color: red;'
1081-
. 'background-color: red;background-color: red;content: "red \\0";content: "red઼";}';
1082-
self::assertSame($expected, $document->render());
1083-
}
1084-
10851063
/**
10861064
* @depends files
10871065
*

Diff for: tests/fixtures/ie-hacks.css

-9
This file was deleted.

0 commit comments

Comments
 (0)