Permalink
Browse files

[HTMLParser head] for convenience

  • Loading branch information...
1 parent c0c9b95 commit d58b03eb697c3b675dcc535788bbf879baad75cd @mxcl mxcl committed Sep 20, 2011
Showing with 11 additions and 0 deletions.
  1. +3 −0 HTMLParser.h
  2. +8 −0 HTMLParser.m
View
@@ -31,4 +31,7 @@
//Returns the html tag
-(HTMLNode*)html;
+//Returns the head tag
+- (HTMLNode*)head;
+
@end
View
@@ -27,6 +27,14 @@ -(HTMLNode*)html
return [[self doc] findChildTag:@"html"];
}
+-(HTMLNode*)head
+{
+ if (_doc == NULL)
+ return NULL;
+
+ return [[self doc] findChildTag:@"head"];
+}
+
-(HTMLNode*)body
{
if (_doc == NULL)

0 comments on commit d58b03e

Please sign in to comment.