Skip to content

Commit b0c8d8f

Browse files
committed
Remove more ancient stuff
1 parent 1ef8244 commit b0c8d8f

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

src/Parsing/ParserState.php

Lines changed: 0 additions & 7 deletions
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->usesLenientParsing()
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 '';

src/Value/Value.php

Lines changed: 0 additions & 1 deletion
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) {

tests/ParserTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,28 +1036,6 @@ public function unexpectedTokenExceptionLineNo(): void
10361036
}
10371037
}
10381038

1039-
/**
1040-
* @test
1041-
*/
1042-
public function ieHacksCauseExceptionInStrictMode(): void
1043-
{
1044-
$this->expectException(UnexpectedTokenException::class);
1045-
1046-
self::parsedStructureForFile('ie-hacks', Settings::create()->beStrict());
1047-
}
1048-
1049-
/**
1050-
* @test
1051-
*/
1052-
public function ieHacksArePartiallyRemovedInLenientMode(): void
1053-
{
1054-
$document = self::parsedStructureForFile('ie-hacks', Settings::create()->withLenientParsing(true));
1055-
1056-
$expected = 'p {padding-right: .75rem;background-image: none;color: red;'
1057-
. 'background-color: red;background-color: red;content: "red \\0";content: "red઼";}';
1058-
self::assertSame($expected, $document->render());
1059-
}
1060-
10611039
/**
10621040
* @depends files
10631041
*

tests/fixtures/ie-hacks.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)