Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't need to pass id and class directly when writing an image.

  • Loading branch information...
commit ac684bc24846ebd58e2012feaa15e807c7a63a5e 1 parent e96c6c8
@mikeabdullah mikeabdullah authored
Showing with 8 additions and 16 deletions.
  1. +4 −6 KSHTMLWriter.h
  2. +4 −10 KSHTMLWriter.m
View
10 KSHTMLWriter.h
@@ -70,12 +70,10 @@
#pragma mark Images
// <img src="..." alt="..." width="..." height="..." />
-- (void)writeImageWithIdName:(NSString *)idName
- className:(NSString *)className
- src:(NSString *)src
- alt:(NSString *)alt
- width:(NSString *)width
- height:(NSString *)height;
+- (void)writeImageWithSrc:(NSString *)src
+ alt:(NSString *)alt
+ width:(NSString *)width
+ height:(NSString *)height;
#pragma mark Link
View
14 KSHTMLWriter.m
@@ -147,17 +147,11 @@ - (void)startAnchorElementWithHref:(NSString *)href title:(NSString *)titleStrin
[self startElement:@"a"];
}
-- (void)writeImageWithIdName:(NSString *)idName
- className:(NSString *)className
- src:(NSString *)src
- alt:(NSString *)alt
- width:(NSString *)width
- height:(NSString *)height;
+- (void)writeImageWithSrc:(NSString *)src
+ alt:(NSString *)alt
+ width:(NSString *)width
+ height:(NSString *)height;
{
-
- if (idName) [self pushElementAttribute:@"id" value:idName];
- if (className) [self pushElementAttribute:@"class" value:className];
-
[self pushElementAttribute:@"src" value:src];
[self pushElementAttribute:@"alt" value:alt];
if (width) [self pushElementAttribute:@"width" value:width];
Please sign in to comment.
Something went wrong with that request. Please try again.