Lines Matching refs:html5
1 // g++ -Wall -O2 contrib/html5-printer.cpp -o html5-printer -ltinyxml2
3 // This program demonstrates how to use "tinyxml2" to generate conformant HTML5
6 // http://dev.w3.org/html5/markup/syntax.html
8 // In HTML5, there are 16 so-called "void" elements. "void elements" NEVER have
10 // An example of a self-closig HTML5 element is "<br/>" (line break)
15 // self-closing. This behavior produces space-effeceint XML, but incorrect HTML5.
52 // Contrived input containing a mix of void and non-void HTML5 elements.
53 // When printed via XMLPrinter, some non-void elements will self-close (not valid HTML5).
74 // Complete list of all HTML5 "void elements",
75 // http://dev.w3.org/html5/markup/syntax.html
101 std::cout << "XMLPrinter (not valid HTML5):\n" << prn.CStr() << "\n\n";
103 XMLPrinterHTML5 html5 (NULL, true);
104 doc.Print (&html5);
105 std::cout << "XMLPrinterHTML5:\n" << html5.CStr() << "\n";