[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread John Resig
I'm fairly certain that's incorrect syntax (putting a div inside a span - especially one that's self-closing). The browser will automatically force the div outside the span. --John On Wed, Oct 29, 2008 at 11:38 AM, Jay [EMAIL PROTECTED] wrote: Has someone else already posted this bug? The

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 10:46 am, John Resig [EMAIL PROTECTED] wrote: I'm fairly certain that's incorrect syntax (putting a div inside a span - especially one that's self-closing). The browser will automatically force the div outside the span. Why does it work as I expected if the tag is not self closing?

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread chris thatcher
Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do unexpected things if you try. definitely look at the w3c site to get some more specifics. On Wed, Oct 29, 2008 at

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 11:08 am, chris thatcher [EMAIL PROTECTED] wrote: Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do unexpected things if you try.  definitely look at

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
On Oct 29, 2008, at 12:10 PM, Jay wrote: On Oct 29, 11:08 am, chris thatcher [EMAIL PROTECTED] wrote: Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Richard D. Worth
On Wed, Oct 29, 2008 at 12:04 PM, Jay [EMAIL PROTECTED] wrote: I'll go read up on what the span tag is supposed to do. It seems valid to me that if I wanted to apply format attributes to a bunch of elements I could surround it with a span. A div is a better fit than span in that case. -

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
What? no rules were used when you coded in assembly? There are always rules in everything. In assembler they're predictable and absolute though. With html a lot of things are only 'hints' and it invisibly does whatever it wants without telling you what happened. Add to that different browsers

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 11:34 am, Richard D. Worth [EMAIL PROTECTED] wrote: A div is a better fit than span in that case. Thanks Richard. That works as well as what I had and I'm closer to good practice.

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
Care to share a link to what you use for xhtml validation? I use my editor, but if you don't have a validating editor, you could use: http://validator.w3.org/

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread ricardobeat
hehe. It's easy once you get to know the intrincacies between CSS and XHTML. A span is an in-line element, it's purpose is to separate a 'span' of text. That's why you can't put a block element (i.e a div) inside. Most elements are either in-line or block level, so it's easy to know what fits.

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
http://validator.w3.org/ Thanks Robert.

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:24, Jay [EMAIL PROTECTED] wrote: What? no rules were used when you coded in assembly? There are always rules in everything. In assembler they're predictable and absolute though. With html a lot of things are only 'hints' and it invisibly does whatever it wants without

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a parsing error, should be

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:28, ricardobeat [EMAIL PROTECTED] wrote: 2. div / You can't self close a DIV, even if it's empty. The XHTML specs allow it, but browser currently can't handle it: (found athttp://www.w3.org/TR/xhtml1/#C_3) Given an empty instance of an element whose content model is not EMPTY

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
On Oct 29, 2008, at 1:39 PM, Jay wrote: On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Richard D. Worth
On Wed, Oct 29, 2008 at 1:59 PM, Robert Koberg [EMAIL PROTECTED] wrote: On Oct 29, 2008, at 1:39 PM, Jay wrote: On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a parsing error, should be style=float:right,color:green Sorry, typo. You were right, ricardo is wrong. They

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:24, Jay [EMAIL PROTECTED] wrote: http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.4 I haven't had time to do an exhausitve search but nowhere in the span tag description does it specifically state what tags it may or may not enclose. This part of the DTD is important: