Permalink
Browse files

non-lowercase tags shouldn't be used for HTML.

  • Loading branch information...
mikeabdullah committed Aug 13, 2010
1 parent f23f8c7 commit 566d24ca23b0c916f6d8d3c0ad555e6d55f6110c
Showing with 3 additions and 0 deletions.
  1. +3 −0 KSHTMLWriter.m
View
@@ -335,6 +335,9 @@ - (BOOL)canWriteElementInline:(NSString *)tagName;
- (void)startElement:(NSString *)elementName writeInline:(BOOL)writeInline; // for more control
{
+ NSAssert1([elementName isEqualToString:[elementName lowercaseString]], @"Attempt to start non-lowercase element: %@", elementName);
+
+
// Add in any pre-written classes
NSString *class = [self elementClassName];
if (class)

0 comments on commit 566d24c

Please sign in to comment.