Closed zoggy closed 3 months ago
There is no really good reason at this point.
The original reason was that this library was (originally) written over Ocamlnet's Nethtml
parser. As you can see, its API doesn't expose namespaces.
Is this something you would like to see added?
Yes, as I got bitten when reading and writing xhtml containing svg: missing namespaces resulted in incorrect svg.
Fair enough. I will add them, in I guess some weeks. Thanks for reporting.
Thanks, There is no emergency.
I hadn't known about this before: https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/
Any new word on this? I could use the support for SVG parsing right now.
Is there a reason for throwing away namespace prefixes ?
https://github.com/aantron/lambda-soup/blob/master/src/soup.ml#L122-L124