[TYPO3-dev] css_styled_content makes wrong markup

JoH asenau info at cybercraft.de
Sat Mar 1 00:44:08 CET 2008


>>> As you see the header is anywhere inside the element, but to be
>>> semantic correct, header has to be the first element. If you disable
>>> css it's wrong order.
>
> Having the headline not first thing in physical (not visual) order of
> the source code is a prerequisite for small screen rendering. It is
> just against any logic to have the header after an image, because the
> image will be in wrong context then.
>
> It might be a small issue compared to those you have in mind, but
> Steffen applied a patch, and if those problems could be solved, why
> not just DOING it, I am asking myself and the others.

Well - after checking this "wrong" markup I think it's not a problem at all.

Actually the "Text w/image" element is just a composition of 3 major parts.
These are a headline, a text and a block of one or more images and all of
these can be ordered in different ways.
The order is acchieved by 10 different positions of the imageblock.
3 between the header and the text (left, centered and right)
3 after header and text (left, centered and right)
2 after the header and floated within the text block (at the top left  or
top right corner of the textblock)
2 as a separate column to the right or left of another column containing the
header and the text

All of these are valid markups and compliant to any rule of the W3C I know
of and IMHO there is no semantical problem at all.
Combining the 3 parts in one box doesn't necessarily mean that the image has
to be put after the headline to get a semantically correct order.
As long as the headline comes before the textblock it belongs to and as long
as the image got an alternative text explaining its content everything seems
pretty OK to me.

Even if we look at them using a screenreader the order seems still OK, since
it will be percieved in the same way no matter if you hear it or look at it:
Left will be read IMAGEBLOCK HEADLINE TEXT
Right will be read HEADLINE TEXT IMAGEBLOCK

The perception of the left one would be: First we show you some images and
after that we will explain them more detailed in the textblock which is
started by a headline.
The perception of the right one just changes the order: We will tell you
something whithin a textblock started by a headline and after that we show
you some images for a better understanding.

So where is the problem?

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com






More information about the TYPO3-dev mailing list