Re: [css-d] span / crashing IE7

2007-05-01 Thread Jukka K. Korpela
On Mon, 30 Apr 2007, Glen Lipka wrote:

 My IE7 crashes if I look at the following source:

Mine does too, after thinking some time. This does not happen if I 
remove the style element, making the issue CSS-related, but the basic 
issue is markup.

  a href=Link1span //a
- -
 It doesn't crash if I am explicit with span/span

According to the XHTML 1.0 specification, you should not use span / but 
span/span. More generally, in XHTML 1.0, the tagname / construct 
should be used if and only if the element's content model is EMPTY, i.e. 
no content is ever allowed by the syntax rules. Ref.:
http://www.w3.org/TR/xhtml1/#guidelines
(Technically, Appendix C is informative, not normative; but the XML 1.0 
specification says: For interoperability, the empty-element tag SHOULD be 
used, and SHOULD only be used, for elements which are declared EMPTY.
Ref.: http://www.w3.org/TR/REC-xml/#sec-starttags )

What happens on IE is that the / in span / is ignored, treating it as 
the lone start tag span. If you remove the / characters, IE 7 still 
crashes.

(IE does not understand XHTML. If you send XHTML to it labelled as 
text/html, it will treat it as HTML, or rather the same way it treats 
HTML.)

 It doesn't crash if I only have 1 link.

I guess IE gets confused when it sees two span tags with no end tag for 
either of them, though only when you ask it to apply your style sheet.

 Is span / illegal?

Not in XHTML, but it should not be used in any context where your document 
might be processed by old HTML browsers like IE.

 Why would this crash IE7?

Who knows what really happens? But basically you have (when your document 
is processed as HTML) two elements that need end tags but don't have them, 
so it's not surprising that IE crashes when there are style sheets to be 
applied to them.

-- 
Jukka Yucca Korpela, http://www.cs.tut.fi/~jkorpela/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] span / crashing IE7

2007-05-01 Thread S. F. Alim
Well I don't know,

I made few tests of putting proper tags except closing of span /.
It still crashes...

But if u remove you `!DOCTYPE html` declaration, it works well then.

Regards,
Salim



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] span / crashing IE7

2007-04-30 Thread Glen Lipka
My IE7 crashes if I look at the following source:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
titleCrashes IE7/title

style
  a {  position: relative;}
  a span{position: absolute;}
/style
/head
body  

  a href=Link1span //a
  a href=Link2span //a

/body
/html

It doesn't crash if I am explicit with span/span
It doesn't crash if I only have 1 link.

Is span / illegal?  Why would this crash IE7?

Glen
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] span / crashing IE7

2007-04-30 Thread Simon Tiplady | Forums
What is the point of a span if it is not spanning anything? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka
Sent: 01 May 2007 00:51
To: css-d@lists.css-discuss.org
Subject: [css-d] span / crashing IE7

My IE7 crashes if I look at the following source:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
titleCrashes IE7/title

style
  a {  position: relative;}
  a span{position: absolute;}
/style
/head
body  

  a href=Link1span //a
  a href=Link2span //a

/body
/html

It doesn't crash if I am explicit with span/span It doesn't crash if I
only have 1 link.

Is span / illegal?  Why would this crash IE7?

Glen
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org --
http://www.evolt.org/help_support_evolt/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] span / crashing IE7

2007-04-30 Thread Craig Cook
On 4/30/07, Glen Lipka [EMAIL PROTECTED] wrote:

 It still shouldn't crash the browser.  I thought it was valid.

The span element isn't empty, so it requires a closing tag. The
trailing slash only closes empty/replaced elements.

Agreed that an improperly closed span alone shouldn't cause a
full-blown crash, but it may be the combination of the unclosed
element and the attempt to style it with CSS that's making the browser
choke.

-- 
Craig, www.focalcurve.com
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] span / crashing IE7

2007-04-30 Thread Ernie Finlay

span has a beginning and an end,thus span..text../span  br for example 
has no end but must be closed..thus br / .
Regards,E.F.

From: Simon Tiplady | Forums [EMAIL PROTECTED]
To: css-d@lists.css-discuss.org
Subject: Re: [css-d] span / crashing IE7
Date: Tue, 1 May:55:33 +0200

What is the point of a span if it is not spanning anything?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka
Sent: 01 May:51
To: css-d@lists.css-discuss.org
Subject: [css-d] span / crashing IE7

My IE7 crashes if I look at the following source:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
 titleCrashes IE7/title

style
   a {  position: relative;}
   a span{position: absolute;}
/style
/head
body  

   a href=Link1span //a
   a href=Link2span //a

/body
/html

It doesn't crash if I am explicit with span/span It doesn't crash if I
only have 1 link.

Is span / illegal?  Why would this crash IE7?

Glen
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org --
http://www.evolt.org/help_support_evolt/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

_
Get a FREE Web site, company branded e-mail and more from Microsoft Office 
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/