ticket id
000049
status
open
priority
???
assigned to
NOBODY
Reported by: Jason Ford
Component:

XSSFilter could not parse (X)HTML:


<p>If you create a reference to a URL, but don't define it later, you get an unclosed <a/> tag. It seems that desired behavior would be for the link to be ignored.</p>

<h2>Here's the code that gave me trouble</h2>

<pre><code>Django's support for [CouchDB][] (another technology we are using with FeedMagnet) is a good example of this.
</code></pre>

<p>The problem was that I never defined CouchDB like this</p>

<pre><code>[CouchDB]: 
</code></pre>

<p>Forgetting to define the link reference can happen on accident fairly easily if your text has a lot of links in it. If this scenario occurs, I would think the desired HTML output would be:</p>

<pre><code>Django's support for [CouchDB][] (another technology we are using with FeedMagnet) is a good example of this.
</code></pre>

<p>or maybe even drop the brackets all-together to fail more gracefully:</p>

<pre><code>Django's support for CouchDB (another technology we are using with FeedMagnet) is a good example of this.
</code></pre>

<p>But instead, I got this:</p>

<pre><code>Django's support for [CouchDB]<a href="another technology we are using with FeedMagnet" /> is a good example of this.
</code></pre>

<p>In Safari, this doesn't look so bad - but in Firefox (and possibly other browsers) this results in the rest of the page being a link to nowhere, since there is no closing </a> tag. This seems to be a bug since one of the primary reasons (at least from my perspective) in using Markdown, is to prevent accidental HTML syntax errors like the unclosed <a/> tag this scenario is generating.</p>
Powered by Sputnik | XHTML 1.1