Genii Weblog
Lotus iNotes removing some styles/attributes it shouldn't
Mon 13 Jul 2009, 11:54 AM
Tweetby Ben Langhinrichs
Dojo editor seems to strip out some colors (including the "Geek" in SpamGeek), so now I have to see if I can find a work around for Dojo bugsIt turns out I was incorrect, and that it has nothing to do with Dojo (as far as I can tell), and is a problem back in 8.0, and possibly earlier (although I have not verified yet).
Copyright © 2009 Genii Software Ltd.
What has been said:
838.1. Jerry Carter (07/14/2009 01:46 AM)
Out of curiosity, what is the content type on the html or is it just inline html? It seems to be following some more recent HTML rules where the font tag is no longer valid. I don't have the spec right handy but HTML 4.0 or so I don't think uses the font tag - I'm pretty sure it's invalid XHTML Transitional. Maybe specifying a content type that supports the tag would leave it in?
838.2. Ben Langhinrichs (07/14/2009 02:11 AM)
Interesting point, but this is 4.01 Transitional, in which the <font> tag is certainly allowed. This is MIME, so the content type is handled differently. That is actually another problem iNotes has, at least in 8.0.1, in that it adds an html and body tag, even if there already is one, so you get:
<html><body> <html><body>
--- html ---
</body></html> </body></html>
which is clearly incorrect. Also, it leaves two sets of font tags and strips out the other, virtually identical one.
838.3. Jerry Carter (07/14/2009 02:14 AM)
Sadly, this seems consistent with some of the html rendering performed by the Domino server on Notes forms.