Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Change attr value verification to take first match
Prior to this change, using the first match out of multiple `AttrValueInterface` items had to be declared explicitly using flag `Attr::MATCH_FIRST_VALUE` - thus, all values had to match. With this change, only the first match is considered (implicit flag `Attr::MATCH_FIRST_VALUE`). To declare that all value items have to match, new `Attr::MATCH_ALL_VALUES` has been introduced. Deprecations: * `\TYPO3\HtmlSanitizer\Behavior\Attr::MATCH_FIRST_VALUE` * `\TYPO3\HtmlSanitizer\Behavior\Attr::shallMatchFirstValue()` New additions: * `\TYPO3\HtmlSanitizer\Behavior\Attr::MATCH_ALL_VALUES` * `\TYPO3\HtmlSanitizer\Behavior\Attr::shallMatchAllValues()` Fixes: #65
- Loading branch information
Showing
3 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters