aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php')
-rw-r--r--lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php b/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php
deleted file mode 100644
index 21c491436..000000000
--- a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-class HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjector extends HTMLPurifier_Injector
-{
- public $name = 'EndRewindInjector';
- public $needed = array('span');
- public function handleElement(&$token) {
- if (isset($token->_InjectorTest_EndRewindInjector_delete)) {
- $token = false;
- }
- }
- public function handleText(&$token) {
- $token = false;
- }
- public function handleEnd(&$token) {
- $i = null;
- if (
- $this->backward($i, $prev) &&
- $prev instanceof HTMLPurifier_Token_Start &&
- $prev->name == 'span'
- ) {
- $token = false;
- $prev->_InjectorTest_EndRewindInjector_delete = true;
- $this->rewind($i);
- }
- }
-}
-
-// vim: et sw=4 sts=4