Asiri Rathnayake wrote:
Hi Devs,
First of all, sorry about the long email subject :)
Our style filter is working quite nicely and users so far like it very much
:). Still, word documents sometimes contain really really (I mean really)
huge images embedded in them. In such cases since our style filter rips off
height & width attributes of <img> tags, images run way off the page
boundaries (looks very ugly).
Following are the only attributes currently allowed with our style filter:
a --> href, name
img --> alt, src
td --> colspan, rowspan
I think we have to add height & width attributes into this set (under img
tag) because heights & widths are not actually styling attributes (IMO).
Why were you removing those in the first place? (it's perfectly XHTML valid)
and they're quite important attributes of an image, because of this size issue.
Note: We are discussing about cleaning OO generated html content that comes
from a word document, not about general html cleaning.
WDYT?
Thanks.
- Asiri
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs