Sanitizes a CSS @supports rule.
More...
|
| doSanitize (CSSObject $object) |
| @inheritDoc
|
|
| sanitizeDeclarationBlock (SimpleBlock $block, PropertySanitizer $sanitizer) |
| Sanitize a block's contents as a DeclarationList, in place.
|
|
| sanitizeRuleBlock (SimpleBlock $block, array $sanitizers) |
| Sanitize a block's contents as a RuleList, in place.
|
|
| fixPreludeWhitespace (AtRule $rule, $cloneIfNecessary) |
| For the whitespace at the start of the prelude.
|
|
| sanitizationError ( $tag, CSSObject $object, array $data=[]) |
| Record a sanitization error.
|
|
| sanitizeObj (Sanitizer $sanitizer, CSSObject $object) |
| Run another sanitizer over a CSSObject.
|
|
| sanitizeList (Sanitizer $sanitizer, CSSObjectList $list) |
| Run a sanitizer over all CSSObjects in a CSSObjectList.
|
|
| sanitizeRules (array $ruleSanitizers, RuleList $list) |
| Run a set of RuleSanitizers over all rules in a RuleList.
|
|
|
| $conditionMatcher |
|
| $ruleSanitizers = [] |
|
| $sanitizationErrors = [] |
|
◆ __construct()
Wikimedia\CSS\Sanitizer\SupportsAtRuleSanitizer::__construct |
( |
MatcherFactory | $matcherFactory, |
|
|
array | $options = [] ) |
- Parameters
-
MatcherFactory | $matcherFactory | |
array | $options | Additional options:
- strict: (bool) Only accept defined syntax. Default true.
- declarationSanitizer: (PropertySanitizer) Check declarations against this Sanitizer.
|
◆ doSanitize()
Wikimedia\CSS\Sanitizer\SupportsAtRuleSanitizer::doSanitize |
( |
CSSObject | $object | ) |
|
|
protected |
◆ getRuleSanitizers()
Wikimedia\CSS\Sanitizer\SupportsAtRuleSanitizer::getRuleSanitizers |
( |
| ) |
|
Access the list of rule sanitizers.
- Returns
- RuleSanitizer[]
◆ handlesRule()
Wikimedia\CSS\Sanitizer\SupportsAtRuleSanitizer::handlesRule |
( |
Rule | $rule | ) |
|
◆ setRuleSanitizers()
Wikimedia\CSS\Sanitizer\SupportsAtRuleSanitizer::setRuleSanitizers |
( |
array | $ruleSanitizers | ) |
|
Set the list of rule sanitizers.
- Parameters
-
RuleSanitizer[] | $ruleSanitizers | |
The documentation for this class was generated from the following file: