final class TextFragment

Exact-text directives identifying complete units within a declared CSS scope.

Only the single exact form "#:~:text=percent-encoded-text" is supported.

Methods§

public static function isFragment(string $selector): bool
public static function text(string $fragment): string
public static function create(string $text): string

Creates the fragment selecting a text.

Parameters

$textstringThe text

Returns

string The fragment
Test cases 2
Called from 1
Calls 3

Test cases 22§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 7
Other tests reaching this symbol 15

Relations§

Static calls 9