Skip to content

Commit

Permalink
fixes issues 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
parisman committed Aug 23, 2009
1 parent 37cf350 commit fb9bc10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/NSString_HTML.m
Expand Up @@ -272,7 +272,7 @@ -(NSString*)stringByReplacingEntities{




-(NSDictionary*)parseElementAttributesWithRange:(NSRange) range caseSensative:(BOOL)caseSensative{ -(NSDictionary*)parseElementAttributesWithRange:(NSRange) range caseSensative:(BOOL)caseSensative{
NSMutableDictionary* attributes = [[NSMutableDictionary alloc] initWithCapacity: 8]; NSMutableDictionary* attributes = [[[NSMutableDictionary alloc] initWithCapacity: 8] autorelease];


CFStringInlineBuffer localBuffer; CFStringInlineBuffer localBuffer;
CFStringInitInlineBuffer((CFStringRef)self, &localBuffer, CFRangeMake(range.location, range.length)); CFStringInitInlineBuffer((CFStringRef)self, &localBuffer, CFRangeMake(range.location, range.length));
Expand Down Expand Up @@ -371,7 +371,7 @@ +(void)parseHTML:(NSString*)source delegate:(id)delegate selector:(SEL)selector
while (delegateWantsToContinue && (c = CFStringGetCharacterFromInlineBuffer(&buffer, index))){ while (delegateWantsToContinue && (c = CFStringGetCharacterFromInlineBuffer(&buffer, index))){


int tagLen; int tagLen;
int len; int len = 0;
int interior; int interior;
Chunk* chunk = nil; Chunk* chunk = nil;
Chunk* partialChunk = nil; Chunk* partialChunk = nil;
Expand Down

0 comments on commit fb9bc10

Please sign in to comment.