config->set('HTML.Trusted', true); $this->config->set('Attr.EnableID', true); } public function testBasicUse() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult( // need support for label for later '




Male
Female

' ); } public function testSelectOption() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('

'); } public function testSelectOptgroup() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('

'); } public function testTextarea() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('

'); } // label tests omitted public function testFieldset() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('
Personal Information Last Name: First Name: Address: ...more personal information...
Medical History Smallpox Mumps Dizziness Sneezing ...more medical history...
Current Medication Are you currently taking any medication? Yes No If you are currently taking medication, please indicate it in the space below:
'); } public function testInputTransform() { $this->config->set('HTML.Doctype', 'XHTML 1.0 Strict'); $this->assertResult('', ''); } public function testTextareaTransform() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('', ''); } public function testTextInFieldset() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('
foo
'); } public function testStrict() { $this->config->set('HTML.Doctype', 'HTML 4.01 Strict'); $this->assertResult('
', ''); } public function testLegacy() { $this->assertResult('
'); $this->assertResult('
'); } public function testHTMLFormsConfigDirective() { $this->config->set('HTML.Trusted', false); $this->config->set('HTML.Forms', true); $this->assertResult('
'); } } // vim: et sw=4 sts=4