Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Util/InlineHtmlOpeningTagMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

final class InlineHtmlOpeningTagMatcher
{
private const ALLOWED_TAGS = 'php|xml|xml\-stylesheet';
private const ALLOWED_TAGS = 'php|xml|xml-stylesheet|xml-model';

public static function invalidInlineHtmlTagOffset(string $text, int $offset = 0): ?int
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Analyser/FileAnalysisProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ public static function lightweightAnalysisProvider(): iterable
yield 'echo tag' => ['<?= "echo";', false, true, null];
yield 'XML declaration' => ['<?xml version="1.0"?>', false, true, null];
yield 'XML stylesheet' => ['<?xml-stylesheet href="style.xsl"?>', false, true, null];
yield 'XML model' => ['<?xml-model href="schema.rng"?>', false, true, null];
yield 'XML model lookalike' => ['<?xml-models href="schema.rng"?>', false, true, 1];
yield 'arbitrary XML processing instruction' => ['<?xml-custom value="x"?>', false, true, 1];
yield 'plain text' => ['plain text', false, true, null];
}
Expand Down
Loading