jamietre / CsQuery

CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.
Other
1.16k stars 250 forks source link

Problem with xinclude xmlns #145

Open schmalls opened 10 years ago

schmalls commented 10 years ago

I have documents which use XInclude for including SVG images. My opening HTML tag looks like:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">

It ends up getting rendered as:

<html xmlns="http://www.w3.org/1999/xhtml">

This causes the images to not be included.

schmalls commented 10 years ago

I was able to force it back in using the following, so I'm not sure why it got removed in the first place.

html["html"].AttrSet("{ 'xmlns:xi': 'http://www.w3.org/2001/XInclude' }");