lambdasoup icon indicating copy to clipboard operation
lambdasoup copied to clipboard

Lost of namespaces

Open zoggy opened this issue 8 years ago • 7 comments

Is there a reason for throwing away namespace prefixes ?

https://github.com/aantron/lambda-soup/blob/master/src/soup.ml#L122-L124

zoggy avatar Apr 13 '17 14:04 zoggy

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.

aantron avatar Apr 14 '17 23:04 aantron

Is this something you would like to see added?

aantron avatar May 08 '17 00:05 aantron

Yes, as I got bitten when reading and writing xhtml containing svg: missing namespaces resulted in incorrect svg.

zoggy avatar May 09 '17 15:05 zoggy

Fair enough. I will add them, in I guess some weeks. Thanks for reporting.

aantron avatar May 09 '17 15:05 aantron

Thanks, There is no emergency.

zoggy avatar May 09 '17 15:05 zoggy

I hadn't known about this before: https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/

aantron avatar Jul 25 '19 16:07 aantron

Any new word on this? I could use the support for SVG parsing right now.

toastal avatar Nov 03 '22 10:11 toastal