Knio / dominate

Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
GNU Lesser General Public License v3.0
1.72k stars 108 forks source link

<main> semantic element missing #117

Closed StefanBrand closed 4 years ago

StefanBrand commented 5 years ago

Hey, the <main> element cannot be used. When I run the following:

doc.add(main())

I get: NameError: name 'main' is not defined

pyxdroid commented 5 years ago

You can easily overload html_tag with missing tags before using it, like:

class main(html_tag):pass

doc.add(main())