[TYPO3-dev] indexed search: where is the css template?
tapio
tapio.markula at dnainternet.net
Mon Mar 20 18:37:18 CET 2006
Christopher wrote:
> Hi Robert,
>
> On 3/20/06, Robert Markula <robert.markula at gmx.net> wrote:
>
> <snip>
>
>>I have a problem with the CSS based template I'm working on.
>>To link a label with the appropriate form field [1], I have to convert
>>the *classes* of form fields to *ids* (like
>>'class="tx-indexedsearch-searchbox-sword sword"' to
>>'id="tx-indexedsearch-searchbox-sword sword"').
>>
>>The problem now is that spaces are not allowed in id's.
>>
>>I would really like to use labels (and link them with the fields), as
>>they are
>>(1) The semantically correct way to connect fields with field descriptions,
>>(2) Enhance usability (just click on the label and the field is
>>automagically selected) and
>>(3) The rule for accessible forms is to connect the labels with the
>>appropriate form fields.
>>
>>Can you (or anybody else) give me a hint on how to proceed?
>
>
> What would be wrong with this:
>
> id="tx-indexedsearch-searchbox-sword" class="sword"
>
> Or am I misunderstanding the nature of the problem?
id="tx-indexedsearch-searchbox-sword sword"
is incorrect
id="tx-indexedsearch-searchbox-sword" class="sword"
is correct IF you use it ONCE in a page (two times cause semantic error
to the usage of id-attribute => the document is not anymore valid HTML
or XHTML
>
> -Christopher
More information about the TYPO3-dev
mailing list