From 7892a925c8f75fae735632867084e2ac3deef60f Mon Sep 17 00:00:00 2001 From: iska Date: Wed, 27 May 2015 00:59:37 +0200 Subject: [PATCH] Fix Element initializer after reordering the arguments --- HTMLKit/HTMLElement.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTMLKit/HTMLElement.m b/HTMLKit/HTMLElement.m index 8e9a18f..47df5f9 100644 --- a/HTMLKit/HTMLElement.m +++ b/HTMLKit/HTMLElement.m @@ -36,10 +36,10 @@ - (instancetype)initWithTagName:(NSString *)tagName attributes:(NSDictionary *)attributes { - return [self initWithTagName:tagName attributes:attributes namespace:HTMLNamespaceHTML]; + return [self initWithTagName:tagName namespace:HTMLNamespaceHTML attributes:attributes]; } -- (instancetype)initWithTagName:(NSString *)tagName attributes:(NSDictionary *)attributes namespace:(HTMLNamespace)htmlNamespace +- (instancetype)initWithTagName:(NSString *)tagName namespace:(HTMLNamespace)htmlNamespace attributes:(NSDictionary *)attributes { self = [super initWithName:tagName type:HTMLNodeElement]; if (self) {