Permalink
Browse files

Include -className in -elementAttributes.

  • Loading branch information...
1 parent ecfabe0 commit 589179c898ebd4e94de604af5e1a2e63f2cddf0a @mikeabdullah mikeabdullah committed Jul 27, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 KSHTMLWriter.m
View
@@ -69,6 +69,20 @@ - (NSString *)className;
return result;
}
+- (NSDictionary *)elementAttributes;
+{
+ id result = [super elementAttributes];
+
+ NSString *class = [self className];
+ if (class)
+ {
+ result = [NSMutableDictionary dictionaryWithDictionary:result];
+ [result setObject:class forKey:@"class"];
+ }
+
+ return result;
+}
+
#pragma mark HTML Fragments
- (void)writeHTMLString:(NSString *)html;

0 comments on commit 589179c

Please sign in to comment.