From a1560ddf3760feac0ee47f322916d352d169cd0c Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 15 Mar 2015 17:54:20 +0100 Subject: [PATCH] Format special element types (add \n to break huge line) --- HTMLKit/HTMLElementTypes.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/HTMLKit/HTMLElementTypes.h b/HTMLKit/HTMLElementTypes.h index ef42791..4dc4a1a 100644 --- a/HTMLKit/HTMLElementTypes.h +++ b/HTMLKit/HTMLElementTypes.h @@ -29,11 +29,22 @@ NS_INLINE BOOL IsNodeHTMLIntegrationPoint(HTMLElement *node) NS_INLINE BOOL IsSpecialElement(HTMLElement *element) { if (element.namespace == HTMLNamespaceHTML) { - return [element.tagName isEqualToAny:@"address", @"applet", @"area", @"article", @"aside", @"base", @"basefont", @"bgsound", @"blockquote", @"body", @"br", @"button", @"caption", @"center", @"col", @"colgroup", @"dd", @"details", @"dir", @"div", @"dl", @"dt", @"embed", @"fieldset", @"figcaption", @"figure", @"footer", @"form", @"frame", @"frameset", @"h1", @"h2", @"h3", @"h4", @"h5", @"h6", @"head", @"header", @"hgroup", @"hr", @"html", @"iframe", @"img", @"input", @"isindex", @"li", @"link", @"listing", @"main", @"marquee", @"menu", @"menuitem", @"meta", @"nav", @"noembed", @"noframes", @"noscript", @"object", @"ol", @"p", @"param", @"plaintext", @"pre", @"script", @"section", @"select", @"source", @"style", @"summary", @"table", @"tbody", @"td", @"template", @"textarea", @"tfoot", @"th", @"thead", @"title", @"tr", @"track", @"ul", @"wbr", @"xmp", nil]; + return [element.tagName isEqualToAny:@"address", @"applet", @"area", @"article", + @"aside", @"base", @"basefont", @"bgsound", @"blockquote", @"body", @"br", + @"button", @"caption", @"center", @"col", @"colgroup", @"dd", @"details", + @"dir", @"div", @"dl", @"dt", @"embed", @"fieldset", @"figcaption", + @"figure", @"footer", @"form", @"frame", @"frameset", @"h1", @"h2", @"h3", + @"h4", @"h5", @"h6", @"head", @"header", @"hgroup", @"hr", @"html", @"iframe", + @"img", @"input", @"isindex", @"li", @"link", @"listing", @"main", @"marquee", + @"menu", @"menuitem", @"meta", @"nav", @"noembed", @"noframes", @"noscript", + @"object", @"ol", @"p", @"param", @"plaintext", @"pre", @"script", @"section", + @"select", @"source", @"style", @"summary", @"table", @"tbody", @"td", + @"template", @"textarea", @"tfoot", @"th", @"thead", @"title", @"tr", + @"track", @"ul", @"wbr", @"xmp", nil]; } else if (element.namespace == HTMLNamespaceMathML) { return [element.tagName isEqualToAny:@"mi", @"mo", @"mn", @"ms", @"mtext", @"annotation-xml", nil]; } else if (element.namespace == HTMLNamespaceSVG) { return [element.tagName isEqualToAny:@"foreignObject", @"desc", @"title", nil]; } return NO; -} \ No newline at end of file +}