image formatter: invalid attributes

0 views
Skip to first unread message

FND

unread,
Aug 31, 2007, 4:23:09 PM8/31/07
to Tiddly...@googlegroups.com
I just noticed that the image formatter uses the "align" presentational
attribute, which is not valid XHTML:
img.align = "left";

The correct solution, obviously, would be to use CSS styling.
Instead of inline styling ("img.style.align = [...]") though, I would
suggest that we use a class here; that way we could also add some
horizontal margin (to prevent nearby text from getting too close to the
image).

...

Actually, it seems that there are quite a few occurrences of ".align ="
in the core - I hope I'm not opening Pandora's box here...
(Nevertheless, I'm a sucker for standards compliance.)


-- F.

Reply all
Reply to author
Forward
0 new messages