Skip to content
Browse files

Checking HTML tags is a waste of time outside of debug builds I'd judge.

  • Loading branch information...
1 parent 7a60274 commit 1fa7ee9f2a78bd04bbf33cbbc7d16d0561c3658b @mikeabdullah mikeabdullah committed Aug 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 KSHTMLWriter.m
View
2 KSHTMLWriter.m
@@ -538,7 +538,9 @@ - (NSString *)validateAttribute:(NSString *)name value:(NSString *)value ofEleme
- (void)startElement:(NSString *)elementName writeInline:(BOOL)writeInline; // for more control
{
+#ifdef DEBUG
NSAssert1([elementName isEqualToString:[elementName lowercaseString]], @"Attempt to start non-lowercase element: %@", elementName);
+#endif
// Add in any pre-written classes

0 comments on commit 1fa7ee9

Please sign in to comment.
Something went wrong with that request. Please try again.