From 5bf117daa1acfdab4df2de48ca15b87d9515ad26 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 2 Jul 2014 16:38:46 +0200 Subject: add list of void tags for later use and for html parsers --- it_html.class | 1 + 1 file changed, 1 insertion(+) diff --git a/it_html.class b/it_html.class index b12d736..f02b540 100644 --- a/it_html.class +++ b/it_html.class @@ -54,6 +54,7 @@ function it_parse_args($args) class it_html { + static $voidtags = array('area' => 1, 'base' => 1, 'br' => 1, 'col' => 1, 'command' => 1, 'embed' => 1, 'hr' => 1, 'img' => 1, 'input' => 1, 'keygen' => 1, 'link' => 1, 'meta' => 1, 'param' => 1, 'source' => 1, 'track' => 1, 'wbr' => 1); # need no closing tag /** * Create a HTML object and global functions for all methods (exlcluding -- cgit v1.2.3