forked from Mynigma/HTMLPurifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLPurifier_HTMLModule_Object.m
More file actions
28 lines (20 loc) · 988 Bytes
/
HTMLPurifier_HTMLModule_Object.m
File metadata and controls
28 lines (20 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// HTMLPurifer_HTMLModule_Object.m
// HTMLPurifier
//
// Created by Roman Priebe on 18.01.14.
#import "HTMLPurifier_HTMLModule_Object.h"
@implementation HTMLPurifier_HTMLModule_Object
- (id)initWithConfig:(HTMLPurifier_Config*)config
{
self = [super initWithConfig:config];
if(self)
{
self.name = @"Object";
self.safe = NO;
[self addElement:@"object" type:@"Inline" contents:@"Optional: #PCDATA | Flow | param" attrIncludes:@"Common" attr:@{@"archive" : @"URI", @"classid" : @"URI", @"codebase" : @"URI", @"codetype" : @"Text", @"data" : @"URI", @"declare" : @"Bool#declare", @"height" : @"Length", @"name" : @"CDATA", @"standby" : @"Text", @"tabindex" : @"Number", @"type" : @"ContentType", @"width" : @"Length"}];
[self addElement:@"param" type:nil contents:@"Empty" attrIncludes:nil attr:@{@"id":@"ID", @"name*":@"Text", @"type":@"Text", @"value":@"Text", @"valuetype":@"Enum#data,ref,object"}];
}
return self;
}
@end