in reply to Re: HTML::Template Loop Question
in thread HTML::Template Loop Question

www.w3.org says it's optional:
The end tag for LI elements can always be omitted.

blokhead

Replies are listed 'Best First'.
4Re: HTML::Template Loop Question
by jeffa (Bishop) on Sep 23, 2003 at 23:47 UTC
Re: Re: Re: HTML::Template Loop Question
by clscott (Friar) on Sep 24, 2003 at 00:08 UTC

    That depends which spec you're working with if your working with any spec at all.

    XHTML requires closed tag pairs for <li></li>, <p></p>, <option></option> etc.

    --
    Clayton
Re: HTML::Template Loop Question
by jonadab (Parson) on Sep 24, 2003 at 02:19 UTC

    Ack! That was in what year? 1997? That document is at least four versions out of date! Backslashing literal @ characters in Perl strings was optional at one time too! If you go to w3.org and click on "HTML" then on "Recommendations", you will find that such ancient versions are no longer even listed. That's way past deprecated. (HTML 4.01 is deprecated "legacy" HTML; XHTML1.0 is obsolete, but not quite yet (or only very mildly) deprecated; XML1.1 is the current cutting edge.)


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
Re: Re: Re: HTML::Template Loop Question
by Willard B. Trophy (Hermit) on Sep 24, 2003 at 14:08 UTC

    But if you're using XHTML, www.w3.org also says:

    Documents must be well-formed

    Some/many/most (please choose your appropriate level of dogmatism) developers use XHTML.

    --
    bowling trophy thieves, die!