Comments (3)
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.
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.
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)
- parser HOT 12
- dquery finish get and ajax calls
- mathml example with the shim in place
- stub out any missing classes/methods HOT 1
- more assertions in unit tests for all HOT 2
- number utils
- insertAdjacent HOT 2
- linting HOT 1
- docstrings
- Exception: unable to update parent 'Comment' object has no attribute 'args' HOT 4
- feature request: boolean attributes HOT 4
- xpath HOT 3
- type hints
- MutationObserver HOT 2
- requirements upper bounds HOT 10
- d3 - polygon HOT 2
- d3 - Tile HOT 1
- Some tests are skipped due to duplicate names
- import domonic.html HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from domonic.