lib: HTML clear children before each render to avoid duplicates
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 14 Jun 2013 14:48:39 +0000 (10:48 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 14 Jun 2013 14:48:39 +0000 (10:48 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/html.nit

index 6e8f8a6..5b50ceb 100644 (file)
@@ -39,6 +39,7 @@ class HTMLPage
 
        # Render the page as a html string
        fun render: String do
+               root.children.clear
                open("head")
                head
                close("head")