Skip to content

Commit

Permalink
Checking HTML tags is a waste of time outside of debug builds I'd judge.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Aug 13, 2012
1 parent 7a60274 commit 1fa7ee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions KSHTMLWriter.m
Expand Up @@ -538,7 +538,9 @@ - (NSString *)validateAttribute:(NSString *)name value:(NSString *)value ofEleme


- (void)startElement:(NSString *)elementName writeInline:(BOOL)writeInline; // for more control - (void)startElement:(NSString *)elementName writeInline:(BOOL)writeInline; // for more control
{ {
#ifdef DEBUG
NSAssert1([elementName isEqualToString:[elementName lowercaseString]], @"Attempt to start non-lowercase element: %@", elementName); NSAssert1([elementName isEqualToString:[elementName lowercaseString]], @"Attempt to start non-lowercase element: %@", elementName);
#endif




// Add in any pre-written classes // Add in any pre-written classes
Expand Down

0 comments on commit 1fa7ee9

Please sign in to comment.