home
/
zktecojo
/
public_html
/
htmlpurifier
/
tests
/
HTMLPurifier
/
AttrDef
/
CSS
➕ New
📤 Upload
✎ Editing:
URITest.php
← Back
<?php class HTMLPurifier_AttrDef_CSS_URITest extends HTMLPurifier_AttrDefHarness { public function test() { $this->def = new HTMLPurifier_AttrDef_CSS_URI(); $this->assertDef('', false); // we could be nice but we won't be $this->assertDef('http://www.example.com/', false); $this->assertDef('url(', false); $this->assertDef('url("")', true); $result = 'url("http://www.example.com/")'; $this->assertDef('url(http://www.example.com/)', $result); $this->assertDef('url("http://www.example.com/")', $result); $this->assertDef("url('http://www.example.com/')", $result); $this->assertDef( ' url( "http://www.example.com/" ) ', $result); $this->assertDef("url(http://www.example.com/foo,bar\)\'\()", 'url("http://www.example.com/foo,bar%29%27%28")'); } } // vim: et sw=4 sts=4
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel