Preserve the ID.'; $expect[1] = $inputs[1]; $inputs[2] = '
Kill the ID.
'; $expect[2] = '
Kill the ID.
'; // test id accumulator $inputs[3] = '
Valid
Invalid
'; $expect[3] = '
Valid
Invalid
'; $inputs[4] = 'Bad dir.'; $expect[4] = 'Bad dir.'; // test attribute case sensitivity $inputs[5] = '
Convert ID to lowercase.
'; $expect[5] = '
Convert ID to lowercase.
'; // test simple attribute substitution $inputs[6] = '
Trim whitespace.
'; $expect[6] = '
Trim whitespace.
'; // test configuration id blacklist $inputs[7] = '
Invalid
'; $expect[7] = '
Invalid
'; $config[7] = HTMLPurifier_Config::createDefault(); $config[7]->set('Attr', 'IDBlacklist', array('invalid')); // test classes $inputs[8] = '
Valid
'; $expect[8] = $inputs[8]; $inputs[9] = '
Keep valid.
'; $expect[9] = '
Keep valid.
'; // test title $inputs[10] = 'PHP'; $expect[10] = $inputs[10]; // test lang $inputs[11] = 'La soupe.'; $expect[11] = 'La soupe.'; // test align (won't work till CSS validation is implemented) // $inputs[12] = '

Centered Headline

'; // $expect[12] = '

Centered Headline

'; // test table $inputs[13] = << Fiddly name Super-duper-price Carrot Humungous $500.23 Taken off the market HTML; $expect[13] = $inputs[13]; // test URI $inputs[14] = 'Google'; $expect[14] = $inputs[14]; // test invalid URI $inputs[15] = 'Google'; $expect[15] = 'Google'; $this->assertStrategyWorks($strategy, $inputs, $expect, $config); } } ?>