[TYPO3-core] FYI24: #11124: Validation issue: End tag for "br" omitted, but OMITTAG NO was specified in typo3/mod/tools/em/class.em_index.php
Patrick Broens
patrick at netcreators.com
Mon May 25 10:59:34 CEST 2009
Hi Ernesto
Ernesto Baschny [cron IT] wrote:
> Steffen Kamper wrote: on 20.05.2009 17:39:
>
>> Ernesto Baschny [cron IT] schrieb:
>>> seem not needed. Both are valid XHTML. The space before the "/" is AFAIK
>>> optional. Same goes for the <hr/> => <hr /> corrections.
>>>
>> that's true, both are valide, but some validators complain and some
>> purists too. I'm in favor having the space (like good style, and
>> compares to our CGL having the spaces too)
>> So it doesn't hurt.
>
> Which validator complains about that? That must be a bug. I thought the
> space is needed for "older browsers" that cannot cope with XHTML to
> still understand the tag (interpret it as "HTML").
The syntax used is recommended by the W3C, and it is derived from WML.
Although no validator should complain about this, like you said, some
older browsers can't cope with it.
The core should reflect the recommendations of the W3C where possible.
So while I also
> prefer the space before the "/", I think fixing that issue with 40
> FYI24s is a bit too much. :)
I've talked to some core team members at the T3DD09 to discuss this and
they all agreed it would be better to split these instead of having one
big patch.
>
> Any why in this context:
>
> + $content.= '<label for="_lookUp">Look up:</label> <input type="text"
> id="_lookUp" name="_lookUp" value="' .
> htmlspecialchars($this->lookUpStr) . '" /><input type="submit"
> value="Search"/><br /><br />';
>
>
> isn't the <input/> also fixed? With that logic, wouldn't that
> require a space before the "/" also?
These 20 patches are just the start. I have a whole list of bad markup
which should and will be checked in the next few weeks, like 'onClick'
instead of 'onclick', method="POST" instead of method="post", uppercase
tags etcetera.
If you're against having so much patches we should discuss this probably
on another list
Cheers,
Patrick
>
> Cheers,
> Ernesto
More information about the TYPO3-team-core
mailing list