Click here to get back home

tags removed from source code

 HomeNewsGroups | Search

comp.infosystems.www.authoring.html - discuss HTML authoring here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
tags removed from source code twiggy182 01-06-2009
Posted by Jonathan N. Little on January 6, 2009, 1:45 pm
Please log in for more thread options
twiggy182 wrote:
show/hide quoted text

Because your markup has an error in it...

All options visible in IE5-7*

<IE6 does not support OptionGroup

show/hide quoted text
like 5.x

IE7 has not problem either way.


Solution: If you need the OptionGroup to show in IE6 then close your
option elements with a closing tag!

show/hide quoted text

Very lame and overused excuse. Create a stripped down demo page that
still exhibits the problem and upload it somewhere public then provide a
URL...

show/hide quoted text

It's not. Whatever you are using to generate the page is *not* inserting
the closing tag.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by Harlan Messinger on January 6, 2009, 4:03 pm
Please log in for more thread options
twiggy182 wrote:
show/hide quoted text

It shouldn't work like that, because the browser is supposed to know
that an option can't contain an optgroup.

show/hide quoted text

Sorry, can't help there. If IE6 has a problem with it, it's a bug, and
IE6 is still unfortunately a significant presence.

Posted by Harlan Messinger on January 6, 2009, 10:36 pm
Please log in for more thread options
Harlan Messinger wrote:
show/hide quoted text

That's not actually the determining factor here--it's that the browser
can't form a proper DOM if elements intersect, and the solution to that
is generally to close the still-open element.

Posted by Jonathan N. Little on January 7, 2009, 10:42 am
Please log in for more thread options
Harlan Messinger wrote:

show/hide quoted text

But the point is it IS closed just as

show/hide quoted text

The problem is IE6 gets it wrong when it does not see the optional
closing tag. It is not correct behavior, but it is easy to fix (for IE6)
by insuring that the close tag is present.

Now the OP believes that it is there and that the browser is removing
it. He is mistaken, for whatever reason his code, (CGI, XSL, or
whatever) is *not* inserting the closing tag. But since he seems
incapable of suppling a demo URL we cannot prove this.

Hint to OP: Another way to check this is to change your script to output
as "Content-Type: text/plain" or dump the output to a text log and see
the actual output.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by Bergamot on January 7, 2009, 11:59 am
Please log in for more thread options

Jonathan N. Little wrote:
show/hide quoted text

Considering that IE6 doesn't even support the optgroup element, it makes
sense that it would not automatically close it when another element is
encountered. It does not know the correct nesting of these elements.

Take the OP's code (without closing tags) and change an optgroup tag to
"bogus". What does Firefox, Opera or Safari do with the unknown tag, and
the options that follow it?

--
Berg

Similar ThreadsPosted
What's all that stuff in the source code? August 25, 2004, 9:04 pm
better/easy way to displaying c source code in html July 18, 2006, 5:44 am
Code added to my XHTML source files giving problems November 18, 2005, 6:56 pm
Style tags -- Eeek how obese these tags make HTML! November 8, 2006, 3:33 am
Meta Tags, Link Tags, other September 27, 2005, 3:29 pm
Cant view source September 10, 2004, 12:06 pm
Source CANNOT be viewed December 3, 2009, 9:18 am
Simple Open Source CMS January 23, 2006, 9:00 am
looking for open source forums..... September 8, 2006, 5:48 pm
Web Standards Meets Open Source? September 29, 2004, 11:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy