ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (XPath $xPath, $useNestingLimit) | |
collect () | |
findByElement (\DOMElement $element, $considerChildren=false) | |
Resolves one subject by element. More... | |
findByElementId ($elementId) | |
Resolves subjects (plural!) by element id - in theory malformed DOM might have same ids assigned to different elements and leaving it to client/browser implementation which element to actually use. More... | |
getElementsToRemove () | |
Get all the elements that caused a nesting exception. More... | |
Protected Member Functions | |
determineInvalidSubjects () | |
Determines and tags infinite loops. More... | |
markSubjectAsInvalid (Subject $subject) | |
The Subject is invalid for some reason, therefore we should remove it and all it's child usages. More... | |
Protected Attributes | |
$xPath | |
$subjects = [] | |
$elementsToRemove = [] | |
$useNestingLimit | |
Definition at line 8 of file Resolver.php.
enshrined\svgSanitize\ElementReference\Resolver::__construct | ( | XPath | $xPath, |
$useNestingLimit | |||
) |
Definition at line 30 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\$useNestingLimit, and enshrined\svgSanitize\ElementReference\Resolver\$xPath.
enshrined\svgSanitize\ElementReference\Resolver::collect | ( | ) |
Definition at line 36 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\determineInvalidSubjects().
|
protected |
Determines and tags infinite loops.
Definition at line 123 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\$elementsToRemove, enshrined\svgSanitize\Helper\extractIdReferenceFromHref(), enshrined\svgSanitize\Exceptions\NestingException\getElement(), enshrined\svgSanitize\Helper\getElementHref(), and enshrined\svgSanitize\ElementReference\Resolver\markSubjectAsInvalid().
Referenced by enshrined\svgSanitize\ElementReference\Resolver\collect().
enshrined\svgSanitize\ElementReference\Resolver::findByElement | ( | \DOMElement | $element, |
$considerChildren = false |
|||
) |
Resolves one subject by element.
\DOMElement | $element | |
bool | $considerChildren | Whether to search in Subject's children as well |
Definition at line 50 of file Resolver.php.
References enshrined\svgSanitize\Helper\isElementContainedIn().
enshrined\svgSanitize\ElementReference\Resolver::findByElementId | ( | $elementId | ) |
Resolves subjects (plural!) by element id - in theory malformed DOM might have same ids assigned to different elements and leaving it to client/browser implementation which element to actually use.
string | $elementId |
Definition at line 71 of file Resolver.php.
References enshrined\svgSanitize\Helper\extractIdReferenceFromHref(), enshrined\svgSanitize\Helper\getElementHref(), and enshrined\svgSanitize\ElementReference\Subject\getElementId().
enshrined\svgSanitize\ElementReference\Resolver::getElementsToRemove | ( | ) |
Get all the elements that caused a nesting exception.
Definition at line 153 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Resolver\$elementsToRemove.
|
protected |
The Subject is invalid for some reason, therefore we should remove it and all it's child usages.
Subject | $subject |
Definition at line 163 of file Resolver.php.
References enshrined\svgSanitize\ElementReference\Subject\clearInternalAndGetAffectedElements().
Referenced by enshrined\svgSanitize\ElementReference\Resolver\determineInvalidSubjects().
|
protected |
Definition at line 23 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\determineInvalidSubjects(), and enshrined\svgSanitize\ElementReference\Resolver\getElementsToRemove().
|
protected |
Definition at line 18 of file Resolver.php.
|
protected |
Definition at line 28 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\__construct().
|
protected |
Definition at line 13 of file Resolver.php.
Referenced by enshrined\svgSanitize\ElementReference\Resolver\__construct().