Kolya on 5/4/2009 at 10:09
I was recently trying to post some HTML code, enclosed in code-tags. Result below.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
*******> replace with your document's title </title>
</head>
<body>
<h1>H1 Title of this page</h1>
<p>Some paragraph ...Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<ul>
<li>the first list item</li>
<li>the second list item</li>
<li>the third list item</li>
</ul>
</body>
</html>
The post-protection stars out the leading title-tag which is annoying. But it gets worse: The HTML is rendered out after that.
This might be a potential security issue, or just some allowed basic HTML tags. It makes the code block non-functional in any case.
Nameless Voice on 5/4/2009 at 11:10
And of course [noparse][noparse] <b>does not</b> work for HTML tags[/noparse].
David on 5/4/2009 at 12:09
Paste your HTML in as &lt;title&gt; rather than <title>
Kolya on 5/4/2009 at 12:17
I thought of that but it's only a partial fix as the rest of the HTML still gets rendered.
...
Oh jeez, you mean replacing the brackets for all the tags...ok.
Well I'm sure there are ways to beat the forum soft into submission. Whether they're usable is a different question.
Mainly I wanted to inform you about this.
ZylonBane on 6/4/2009 at 22:00
I hate the way the code tag forces everything into an arbitrarily-sized scrolling box.
Is it really so hard to mark off a block of text to be rendered in a monospaced font with no parsing of anything contained within?