Re: Missing space

At 2003-01-02 11:47 +01:00, Irene Vatton <irene.vatton@inrialpes.fr> wrote:
>On Sat, 21 Dec 2002 17:35:22 -0000
>"Jose Carlos Santos" <jcsantos@fc.up.pt> wrote:
>
> >
> > > Hi José Carlos / Hola José Carlos
> > >
> > > I don't believe that that effect is a " bug ", simply, how sense has that
> > > the space is marked as <strong>?
> >
> > If I type <strong>a b</strong> then I get a space between "a" and "b".
> > Why don't I get a space when I put a space just before </strong>?
> >
> > > If you put the code in the following way you will obtain the wanted 
> result:
> > > <p><strong>Note:</strong> Note.</p>
> > > And I believe that that is the correct form of making it, because the 
> space
> > > in any case will be something as important as to go marked as <strong>
> >
> > I do not see why this form is more correct than the one that I have posted.
> > I also do not understand why do you say that, in your suggestion, the space
> > "will be something as important as to go marked as <strong>". Finally,
> > and the most important aspect of this, according to the HTML rules the
> > space should appear.
>
>Emamanuelle is right. As long as there is no indication for preserving 
>spaces,
>spaces and new lines just after the start tag and just before the end tag 
>are ignored.
>So "<strong>     a and b      </strong>" is equivalent to "<strong>a and 
>b</strong>".
>
>In your case you have to put the space after the end tag.

I have not been following this thread very closely, so if I am off the mark 
please excuse me. Consider the following two cases:

Case 1:
<strong>a b</strong> c

<strong>a b </strong>c

Case 2:
<strong><span style="font-size: 200%">a b</span></strong> c

<strong><span style="font-size: 200%">a b </span></strong>c

In Case 1 both examples yield the same result, while in Case 2 the space 
between the characters "b" and "c" is wider in the second example.

Note that this is at variance with HTML 4.01 recommendation:

"In order to avoid problems with SGML line break rules and inconsistencies 
among extant implementations, authors should not rely on user agents to 
render white space immediately after a start tag or immediately before an 
end tag."

Tested with:
Amaya 7.1
MS Internet Explorer 6.0 SP1
Mozilla 1.2
Netscape 7.0
Opera 6.05



Lars Bruzelius

SYSteam Udac AB
Box 174,
SE-751 04  Uppsala,
Sweden.

Telephone: +46 18 678054    E-mail: Lars.Bruzelius@udac.se
Telefax:   +46 18 517700    <URL:"http://www.udac.se">

Received on Thursday, 2 January 2003 07:14:25 UTC