Bug 121458 - small glitch with the SPAN TAG
Summary: small glitch with the SPAN TAG
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.5.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-06 10:19 UTC by jerome
Modified: 2012-06-19 18:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase (78 bytes, text/html)
2006-09-23 17:27 UTC, Philip Rodrigues
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jerome 2006-02-06 10:19:27 UTC
Version:           3.5.1 (using KDE 3.5.1, compiled sources)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.7-smp

please try:

<span style='background-color:black;color:white'> abc </span>

The last space after 'abc' will be discarded...(not the header one)
<span style='background-color:black;color:white'> abc&nbsp;</span> renders 
properly.


As for the gmail/konqueror crashes reported 3 days ago we will comply with the Goggle's answer 'Please use a supported browser'...

Jerome - Phnom Penh
Comment 1 Philip Rodrigues 2006-09-23 17:27:02 UTC
Confirmed on r581764. Note that adding some text after the </span> causes the trailing space to be shown.
Comment 2 Philip Rodrigues 2006-09-23 17:27:56 UTC
Created attachment 17888 [details]
testcase
Comment 3 Germain Garand 2007-01-25 18:30:13 UTC
khtml 3.5.6 discards both whitespaces, as does Gecko 1.8.
IE6/7 and Opera 9 discards leading space.

Results are not dependant of doctype.
I have no idea what's expected here.
Comment 4 Christophe Marin 2008-04-06 21:01:34 UTC
Tested with Konqueror 4 (trunk rev. 793966). FF 3.0b5, Opera 9.27.

Konqueror & FF remove both spaces and Opera just removes the first one.

Quote from http://www.w3.org/TR/html401/struct/text.html#h-9.1 :

«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.»
Comment 5 Janek Bevendorff 2012-06-19 18:00:04 UTC
This is not really a bug but a problem with the spec.