Re: <fieldset> element
Matthew Wilson <matthew <at> mjwilson.demon.co.uk>
2007-04-18 19:20:39 GMT
Xavier Morel wrote:
> WML has a fieldset element to group related "form" elements together.
> The fieldset is usually displayed as a box with solid or slanted
> borders, and an optional title punched into the border.
>
> The issue here is that in WML the fieldset title is set by the <at> title
> fieldset attribute, while in regular HTML the fieldset title (the one
> punched into the border) is set by a <legend> element as first child of
> the fieldset (http://www.w3.org/TR/html401/interact/forms.html#h-17.10),
> and the <at> title is only used for regular title purposes (hover hint and
> stuff). Yet wmlbrowser translates the WML fieldset <at> title into an HTML
> fieldset <at> title, giving it quite different semantics than the WML ones.
>
> Would it be possible for wmlbrowser to translate fieldset <at> title into a
> <legend> element?
Yes, that sounds straightforward.
> Side-question: in WML, content can only be contained in <p> elements
> (many devices refuse to render the content and display an error if there
> is anything out of a <p>, apart from cards of course). Would it be
> possible for wmlbrowser to throw an error if it finds a page where
> regular text, <table>, <fieldset>, <go>, <a> and any other "inner"
> element is found at the root of a card, without being enclosed by a <p>?
Definitely possible, although a little more work. In fact, wmlbrowser
allows all kinds of element nesting which should be illegal. I did make
a start on this once, but I found that all manner of pages were
breaking, so I kind of gave up on it. But it certainly could be done.
(Continue reading)