Skip to content

Commit

Permalink
Use the class attribute in <a> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno Antikainen authored and jwang committed Jul 28, 2011
1 parent 54e4c0e commit bece575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Three20Style/Sources/TTStyledTextParser.m
Expand Up @@ -209,8 +209,8 @@ - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
} else if ([tag isEqualToString:@"a"]) {
TTStyledLinkNode* node = [[[TTStyledLinkNode alloc] init] autorelease];
node.URL = [attributeDict objectForKey:@"href"];
node.className = [attributeDict objectForKey:@"class"];
[self pushNode:node];

} else if ([tag isEqualToString:@"button"]) {
TTStyledButtonNode* node = [[[TTStyledButtonNode alloc] init] autorelease];
node.URL = [attributeDict objectForKey:@"href"];
Expand Down

0 comments on commit bece575

Please sign in to comment.