bug in comments in nested HTML tables code

D

David Virgil Hobbs

At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

A comment starting with <!-- above the line of code that initiates
table D will not cause a problem, but a comment starting with <!--
above the table tag for table E WILL cause a problem producing a
chaotic table.

But if the comment starts with <!- that is just one dash, this problem
will not occur.

This is a serious bug since the programmer and others could end up
looking all over the place for the mistake in the code whereas the
actual problem was the bug. Comments starting with <!-- are officially
NOT supposed to be a source of chaos indeed most instructional
material in HTMl instructs that comments SHOULD start with <! and then
a few dashes.

I noticed this bug using IE 6.
 
P

PeterMcC

David Virgil Hobbs wrote in
At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

<snip>

That's not a bug, that's nature's way of telling you not to nest tables 5
deep.
 
K

Karl Groves

David Virgil Hobbs said:
At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

You shouldn't be doing that in the first place.

-Karl
 
S

SpaceGirl

David said:
At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

A comment starting with <!-- above the line of code that initiates
table D will not cause a problem, but a comment starting with <!--
above the table tag for table E WILL cause a problem producing a
chaotic table.

But if the comment starts with <!- that is just one dash, this problem
will not occur.

This is a serious bug since the programmer and others could end up
looking all over the place for the mistake in the code whereas the
actual problem was the bug. Comments starting with <!-- are officially
NOT supposed to be a source of chaos indeed most instructional
material in HTMl instructs that comments SHOULD start with <! and then
a few dashes.

I noticed this bug using IE 6.

This is a result of a bug in the designer/developer, not the browser...
what horrible horrible markup!

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
N

Neal

At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

Suppose I don't. I feel sick already.
A comment starting with <!-- above the line of code that initiates
table D will not cause a problem, but a comment starting with <!--
above the table tag for table E WILL cause a problem producing a
chaotic table.

But if the comment starts with <!- that is just one dash, this problem
will not occur.

Have you ever built a house of cards? Didja ever notice that once you get
to the second level, it usually starts to get VERY hard to make it work?
When I build a house of cards I make a huge sprawling ranch style house,
one story high. I also don't nest tables for the very same reason.
This is a serious bug since the programmer and others could end up
looking all over the place for the mistake in the code whereas the
actual problem was the bug.

The programmer should defer to someone who knows HTML, as anyone who does
know HTML should be aware that it is not a programming language.
Comments starting with <!-- are officially
NOT supposed to be a source of chaos indeed most instructional
material in HTMl instructs that comments SHOULD start with <! and then
a few dashes.

I noticed this bug using IE 6.

You know, when I open every program in my computer and run them
simultaneously, I get the white screen of death. Is this a bug too? Or is
it something I caused by doing something unnecessary?

Solution: do not nest so many damn tables.
 
J

Jeffrey Silverman

At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.
<snip!>

Hah! I just thought it was funny that the uniform response to this post
was "Stop doing that!"
 
S

Sam Hughes

(e-mail address removed) (David Virgil Hobbs) wrote in
At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

How about showing a URL.
 
J

Jim Higson

David said:
At a certain level of nesting of tables, HTML comments starting with
<!--
produce chaotic tables.

For example suppose Table A contains table B that contains table C,
which contains D which contains E.

A comment starting with <!-- above the line of code that initiates
table D will not cause a problem, but a comment starting with <!--
above the table tag for table E WILL cause a problem producing a
chaotic table.

But if the comment starts with <!- that is just one dash, this problem
will not occur.

This is a serious bug since the programmer and others could end up
looking all over the place for the mistake in the code whereas the
actual problem was the bug. Comments starting with <!-- are officially
NOT supposed to be a source of chaos indeed most instructional
material in HTMl instructs that comments SHOULD start with <! and then
a few dashes.

I noticed this bug using IE 6.

Silly question, but you *have* run the code through a validator, havent'
you, to check that it's not just your code that's bad.

Other than that, IE6 has a lot of bugs, and if this is the worst you ever
see from it you're lucky. I'd work on replacing those tables with divs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top