WTF ... IS WTF!?
We are a collective of people who believe in freedom of speech, the rights of individuals, and free pancakes! We share our lives, struggles, frustrations, successes, joys, and prescribe to our own special brand of humor and insanity. If you are looking for a great place to hang out, make new friends, find new nemeses, and just be yourself, WTF.com is your new home.

Spoiler and Code tags conflict...

Boycott

Soul Doubt
1,387
2
0
#1
123
Code:
 456

I don't know how easy this will be to fix, or if you knew about it... The code should be covered up by the spoiler :p
 
32
16
72
#2
Why not just do..
Code:
[spoiler]Its covered up![/spoiler]
instead?
 

Jung

???
Premium
13,998
2,267
487
#3
Well, it makes sense, since the
Code:
 tag is just a call to an HTML <pre> tag.

Edit: Try properly nesting your tags and it will work.
[php][code][spoiler]sadfsdf[/spoiler]
[/php]
=
Code:
[spoiler]sadfsdf[/spoiler]
Edit2: Beaten.
 

Boycott

Soul Doubt
1,387
2
0
#4
ahh, makes sense :)
still, the other way should work still :) I didn't think of doing it the other way:p
 

Jung

???
Premium
13,998
2,267
487
#5
Boycott said:
ahh, makes sense :)
still, the other way should work still
Not really. Think about it, you're trying to style a block level element with an in line span style.


Code:
<span sytle=stuff><pre>words</pre></span>
Isn't going to work out very well when the pre already has a class defined for it.


Think about it this way: The BBcode is just a formality to keep users from inputting HTML. Think about what the BBcode tells the forum to do in HTML.
starts a <span> that sets the background and text to black, then sets an OnMOuseOver to change the text color.
Code:
 starts a <pre> tag which tells the browser to display the text contained in the block exactly how it was entered into the editor, in this case the editor is the post form on the forum.   It makes no sense to allow the <span> to override the block element, especially not a <pre> element.