Giter Club home page Giter Club logo

Comments (3)

byteface avatar byteface commented on May 25, 2024 1

the doc type with str a bit harder in short term. it's part of a re-architecture requirement where my DOM needs to have a top level node. very sorry but you would have to prepend that manually until that gets figured out.

to explain what i mean by this. at the moment my dom can't have a comment outside the html tag for example. as it is the root node. while its illegal to have multiple nodes on a root it still should be possible. and hence other library dom builders don't quite map to mine yet. i.e. the hacks i had to do to expat parser. anyway I'm hoping to get into fixing that so it's compatible with html5lib for example. But it could take some time.

thanks for your patience and trying out the lib also. It helps me a lot ot get people using it and giving feedback.

from domonic.

byteface avatar byteface commented on May 25, 2024

How very strange. I do apologies and will investigate. Thanks so much for the feedback it's appreciated.

In the shorterm please accept my apology and hopefully you can use another lib to beautifying. i.e.

output = render(html(body(h1('Hello, World!'))))
from html5print import HTMLBeautifier
print(HTMLBeautifier.beautify(output, 4))

and I will look into fixing this as soon as possible.

from domonic.

kthy avatar kthy commented on May 25, 2024

No need to apologise, you've written a very useful library! Thanks for considering my feedback - there's probably more to come … 😉

from domonic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.