|
7 Feb 2005, 22:59
|
#1
|
Forever Delayed
Join Date: Sep 2000
Location: www.netgamers.org
Posts: 1,475
|
Here's a new one... (PHP/HTML/Dunno)
Yo, here is my code:
Code:
<p><img src="img/i-arrow-l.gif" alt="Search" /> <a href="javascript: history.back()">Back</a></p>
In Firefox, Mozilla, etc, you get "Back" as a hyperlink. In IE you get "Back", with the last character (K) printed again, underneath. If I insert a space after the closing </a>, there's no duplication.
Code:
p><img src="img/i-arrow-l.gif" alt="Search" /> <a href="javascript: history.back()">Back</a> </p>
Any ideas?
Ta,
M.
__________________
Firefly Oper and General l4m3r - "I Do Stuff"
O2 Rip-off campaign
<vampy> plus i hate people ... i despise humanity as a whole
pablissimo "I'm still geting over the fact you just posted a pic of your own vomit"
|
|
|
7 Feb 2005, 23:14
|
#2
|
Born Sinful
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
|
Re: Here's a new one... (PHP/HTML/Dunno)
Not so much a solution as just another question: what happens if you remove the paragraph tags?
Also, are you using any extra formatting of any kind (CSS), or is that code literally the sum total of it?
It looks like this is just a case of IE being crap, but there you go.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|
|
|
7 Feb 2005, 23:25
|
#3
|
Forever Delayed
Join Date: Sep 2000
Location: www.netgamers.org
Posts: 1,475
|
Re: Here's a new one... (PHP/HTML/Dunno)
Aye, am putting this down to IE not being 100% CSS compliant. Shame, IEv6 is actually fine, does most things as it should.
__________________
Firefly Oper and General l4m3r - "I Do Stuff"
O2 Rip-off campaign
<vampy> plus i hate people ... i despise humanity as a whole
pablissimo "I'm still geting over the fact you just posted a pic of your own vomit"
|
|
|
8 Feb 2005, 05:32
|
#4
|
Friendly geek of GD :-/
Join Date: Nov 2000
Location: On my metal roid
Posts: 923
|
Re: Here's a new one... (PHP/HTML/Dunno)
Uhm, sorry, I'm using IE6 and I couldn't reproduce your problem.
Also, where is the CSS in your example?
And, I know it's good and nice new XML style to use /> for "single-tags", but usually in HTML, its just "<img stuff>", isn't it?
__________________
[ »] Entropy increases! :-/
|
|
|
8 Feb 2005, 09:08
|
#5
|
Born Sinful
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
|
Re: Here's a new one... (PHP/HTML/Dunno)
Not if you're using XHTML, which I assume he is - as XHTML is HTML specified with XML, so they are in fact required for it to validate or be understood by a strict XML parser.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|
|
|
9 Feb 2005, 00:54
|
#6
|
Forever Delayed
Join Date: Sep 2000
Location: www.netgamers.org
Posts: 1,475
|
Re: Here's a new one... (PHP/HTML/Dunno)
Yeah, XHTML transitional baby. Must be a stylesheet thing, but I solved it anyway... funny though, cos it all validates, is accessible, etc... "Fneh!"
__________________
Firefly Oper and General l4m3r - "I Do Stuff"
O2 Rip-off campaign
<vampy> plus i hate people ... i despise humanity as a whole
pablissimo "I'm still geting over the fact you just posted a pic of your own vomit"
|
|
|
14 Feb 2005, 10:38
|
#7
|
Shai Halud
Join Date: Aug 2001
Location: Sunny Leeds \o/
Posts: 2,127
|
Re: Here's a new one... (PHP/HTML/Dunno)
If you want good accessibility, don't use href="javascript: ..."
Or, at the very least, write that entire link to the client with JS and provide a <noscript> substititute.
|
|
|
|
All times are GMT +1. The time now is 03:47.
| |