Revision db2d93dd
Added by Benjamin Luce over 9 years ago
drupal7/modules/filter/filter.test | ||
---|---|---|
1148 | 1148 |
// Setup dummy filter object. |
1149 | 1149 |
$filter = new stdClass(); |
1150 | 1150 |
$filter->settings = array( |
1151 |
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>', |
|
1151 |
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <test-element>',
|
|
1152 | 1152 |
'filter_html_help' => 1, |
1153 | 1153 |
'filter_html_nofollow' => 0, |
1154 | 1154 |
); |
... | ... | |
1184 | 1184 |
|
1185 | 1185 |
$f = _filter_html('<code onerror> </code>', $filter); |
1186 | 1186 |
$this->assertNoNormalized($f, 'onerror', 'HTML filter should remove empty on* attributes on default.'); |
1187 |
|
|
1188 |
// Custom tags are supported and should be allowed through. |
|
1189 |
$f = _filter_html('<test-element></test-element>', $filter); |
|
1190 |
$this->assertNormalized($f, 'test-element', 'HTML filter should allow custom elements.'); |
|
1187 | 1191 |
} |
1188 | 1192 |
|
1189 | 1193 |
/** |
Also available in: Unified diff
Update to 7.37