4 replies [Last post]
ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 10 years 26 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

Hi guys,
Is it just me or when I surround code with the code button, it strips all extras such as 'classes', 'IDs', 'hrefs', etc. after the post is submitted. The most obvious is the Doctype tag.
Instead of seeing the whole Doctype, I only see <DOCTYPE> when enclosed in 'code' tags.

I am posting all of the code below. Do you see the html with complete Doctype, href's, classes, etc. or just the html tags? Maybe it is just my machine and some settings were changed in FF.

Thanks,
- r

<DOCTYPE>

<html>

<head>
<meta>
<title>Title</title>
<link>
<link>

</head>

<body>
<div>
<div><img></div> <end>

<div>
</div> <end>

<div>
<a>About Us</a>&nbsp;&nbsp; | &nbsp;&nbsp;
<a>Our Locations</a>&nbsp;&nbsp; | &nbsp;&nbsp;
<a>Job Search</a>&nbsp;&nbsp; | &nbsp;&nbsp;

<a>Contact Us</a>&nbsp;&nbsp; | &nbsp;&nbsp;
<a>Home</a>
</div> <end>

<div>
<a><img></a>
</div> <end>
<div>
<h2>Title</h2>

</div> <end>

<div>
2006 &copy; Copright.  All Rights Reserved.

</div> <end>

</div> <end>
</body>
</html>

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 41 weeks 4 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Re: Code button is being weird

ragamuffin wrote:
Hi guys,
Is it just me or when I surround code with the code button, it strips all extras such as 'classes', 'IDs', 'hrefs', etc. after the post is submitted. The most obvious is the Doctype tag.

Yep - just you. Laughing out loud

Seriously, just change your profile to disable html in posts by default, or remember to tick the Disable HTML in this post button for every message you post with code in it.

The first way seems easier to me, offhand.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 10 years 26 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

Code button is being weird

:oops: I must have accidently changed that in my profile.

Thanks,

- r

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 4 years 48 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Code button is being weird

No, it's not just you and I think it's to do with a recent forum upgrade because a lot of people have been experiencing the same problem when it wasn't the case before.
It actually seems counter-intuitive that you'd disable HTML to enable attributes in your HTML and as it's obviously not set by default when people sign up, it's something they're going to be unaware of until someone else tells them.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 10 years 26 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

Code button is being weird

Ok...so I am not crazy after all, because I went to my profile and nothing had been changed and the issue still persists...it feels like an episode of "The Twilight Zone" 8-[

After testing it...it is as you say, Tyssen...to enable my HTML, I have to select "Disable HTML in this post".

Now the problem is officially spoken of. Wink

- r