HTMLTextBlock swallowing <span/>

Jun 21, 2012 at 9:32 PM

Hi Matthijs, great library!

I am planning on using the HTMLTextBlock in a WP7 app. Have you noticed this behaviour though? If there is a span element in the html it seems to be omitted from the output.


Jun 25, 2012 at 2:41 PM

First, sorry for not answering your question, e-mail notifications were turned off for me, so I've missed your thread, sorry.

Regarding your question;

hmmm,.. That should not happen,..

Can you provide me with a HTML snippet where the SPAN gets swallowed?

I'll fix as soon as I can!

Jun 25, 2012 at 9:44 PM

Below is a sample where the span gets omitted.

This is awesome, may be a simple, free and low maintenance way of hosting a website.<br><br>cc: <span class='yammer-object' data-yammer-object='user:3009441' data-resource-id='3009441' data-resource-model='user'>@<a href=''>Alexander Preston</a></span>

The only way that I can get it to render is to remove the span element.

Also the a tag seems to force itself onto a newline always, is that the intended behavior?


Jun 25, 2012 at 9:48 PM

One more question regarding the <table> element. They seem to get omitted too - is that a design choice on your part because they would be difficult to render them correctly in XAML?

Jun 26, 2012 at 7:50 AM

Hi alex, I will look into the issue of the span swallowing, that's not supposed to happen.

The linebreak is by design, as is the lacking support for tables.

I'm considering tables for the next release.