W3C home > Mailing lists > Public > www-html@w3.org > June 2006

Re: Identifying end tags

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 23 Jun 2006 18:05:49 +1000
Message-ID: <449BA0DD.3040003@lachy.id.au>
To: Nickolas Nansen <nick_nansen@hotmail.com>
CC: www-html@w3.org

Nickolas Nansen wrote:
> Working with nested tables,

There is rarely a legitimate need for nested tables, unless you're 
abusing tables for layout.

> div tags and other elements may cause problems when combining code 
> and especially when there will be different levels of nesting.

If there are really that many that you can't keep track of, then that 
probably indicates you've used far too much redundant markup.

  It's not always easy to keep track of how many div's to end at the
> end of the local code and there is a potential risk of making problems for
> the framing code. Because of this I would like to know if there is or could
> be made an attribute used by programmers to keep track of the tags.

No, XML syntax does now allow attributes to appear on end tags.

> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div>
> </div>
> </div>
> </div>

Is there really a need to nest that many divs inside each other?

> With comments
> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div><!--/related-->
> </div><!--/maincontent-->
> </div><!--/content-->
> </div><!--/design-->
> 
> With attributes
> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div id="related">
> </div id="maincontent">
> </div id="content">
> </div id="design">

What makes the comments harder to use than your proposed end-tag attributes?

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Friday, 23 June 2006 08:06:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:06 GMT