self.html(xmlns="http://www.w3.org/1999/xhtml", dir=ltr, lang=no, xmllang=no) ... self._html() Default value for xmlns is "http://www.w3.org/1999/xhtml". >>> b = HtmlBuilder
(self, xmlns=None, **args)
| 636 | self.write('<!DOCTYPE %s>\n' % (s or 'html')) |
| 637 | |
| 638 | def html(self, xmlns=None, **args): |
| 639 | """ |
| 640 | <www href="http://www.w3schools.com/tags/tag_html.asp" target="external"/> |
| 641 | |
| 642 | self.html(xmlns="http://www.w3.org/1999/xhtml", dir=ltr, lang=no, xmllang=no) |
| 643 | ... |
| 644 | self._html() |
| 645 | |
| 646 | Default value for xmlns is "http://www.w3.org/1999/xhtml". |
| 647 | |
| 648 | >>> b = HtmlBuilder() |
| 649 | >>> b.compact = True |
| 650 | >>> b.html() |
| 651 | >>> b._html() |
| 652 | >>> b.getHtml() |
| 653 | '<html xmlns="http://www.w3.org/1999/xhtml"></html>' |
| 654 | """ |
| 655 | self.write('<html xmlns="%s"' % (xmlns or 'http://www.w3.org/1999/xhtml')) |
| 656 | self.getandwrite_attributes('html', args) |
| 657 | self.write('>') |
| 658 | self.tabIn() |
| 659 | # Push as last, so we can see the current tag on the stack |
| 660 | self._pushTag('html') |
| 661 | |
| 662 | def _html(self): |
| 663 | self._closeTag('html') |
no test coverage detected