Zen Cart Logo
Forums / General Questions / Extra slash and spade in html

Extra slash and spade in html

Locked

Views: 2,395

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
10 Jun 2007, 8:46 PM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Extra slash and spade in html

Somehow all my pages are getting " /" (space slash) added to the end of all my html tags.

ie <p />

When I look at the raw files in a text editor they do not appear but when they are parsed they do appear on the website, and are visible when viewing source code.

How do I stop this from happening?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

11 Jun 2007, 4:32 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Extra slash and spade in html

If you run your page url through a validator you will probably see these as missing tag terminators - in XHTML 1.0 Transitional each open must be closed before another open can exist so the browser is making the best guess out of your missed closing tags and adding them to make sense of this

Zen-Venom Get Bitten

11 Jun 2007, 1:53 PM
#3
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Extra slash and spade in html

Can't really run it through a validator because its the items for sale, so there is nothing I can do about that. Seems to be every page so I dont think its anything I have done. I have used a validator for the url but unfortunately I cant save it.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

11 Jun 2007, 4:14 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Extra slash and spade in html

Can't really run it through a validator because its the items for sale
Just use the url to the item page

Zen-Venom Get Bitten

12 Jun 2007, 11:21 AM
#5
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Extra slash and spade in html

Rightttt.

Then what? There is no way to save the new html file to php

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

12 Jun 2007, 4:22 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Extra slash and spade in html

Rightttt.

Then what? There is no way to save the new html file to php
No there is not be the errors are listed and these you can correct so that the pages parses correctly

Zen-Venom Get Bitten

13 Jun 2007, 5:57 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Extra slash and spade in html

pixelpadre:

Somehow all my pages are getting " /" (space slash) added to the end of all my html tags.

ie <p />

When I look at the raw files in a text editor they do not appear but when they are parsed they do appear on the website, and are visible when viewing source code.

How do I stop this from happening?

Who is your hosting company?
What version of PHP is your server using?
Does this affect every tag on the page, or just tags in product descriptions?
What is the URL where this can be seen in action?
What version of Zen Cart are you using?
What addons/contributions have you installed?
If you post a simple .php or .html page with basic content, what happens? Please create two files, entitled testslash.php and testslash.html, using the following content, and upload them to your server, and post a link to them:```

<h1>testing my tags</h1> <p><strong>Bold area</strong> followed by regular text</p> <ul><li>bulleted list a<li>bulleted list b<li>bulleted list c</ul> ```

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Jun 2007, 4:20 PM
#8
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Extra slash and spade in html

Now we are talking!!!!!!

I did what you suggested and the problem is still there. " />"

website is scanmyid dot com and here is the link

http://scanmyiddotcom/idscanners/index.php?main_page=product_info&cPath=1&products_id=13

:clap::clap:

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2007, 1:24 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Extra slash and spade in html

What are the links to these files?
testslash.php and testslash.html

And the answers to DrBytes additional questions?

Zen-Venom Get Bitten

14 Jun 2007, 6:17 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Extra slash and spade in html

I don't know what you're talking about.

If you're saying that you don't understand why there are slashes in the end of SOME tags, then perhaps you don't realize that certain tags use that method ("self-closing") as part of XHTML compliance.

ie:
<img src="includes/templates/template_default/buttons/english/button_sold_out.gif" alt="Sold Out" title=" Sold Out " width="78" height="78"** /> **

and

<br class="clearBoth"** />**

and

<link rel="stylesheet" type="text/css" href="includes/templates/gloss_blue/css/stylesheet.css"** /> **

Those are normal.

You started your first post talking about "p" tags having the self-closing format. I can't see any of those on your site. If you have an example of one, please post it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jun 2007, 2:16 PM
#11
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Extra slash and spade in html

I do confess. I am totally ignorant about xhtml. I will look around and get back to you.

thanks for your dedication.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2007, 3:59 PM
#12
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Extra slash and spade in html

I neglected to mention that this all started from a different post

http://www.zen-cartdotcom/forum/showthread.php?t=67442

where there was a problem with fonts.......

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

14 Jun 2007, 8:01 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Extra slash and spade in html

I think you've been mistakenly misled for some reason.
http://www.zen-cart.com/forum/showthread.php?p=389791#post389791

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.