<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Updated version of &#8220;Bug attachment source&#8221;</title>
	<atom:link href="http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/</link>
	<description>Jesse Ruderman on Firefox, security, and more</description>
	<lastBuildDate>Fri, 09 Sep 2011 05:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: pile0nades</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3468</link>
		<dc:creator>pile0nades</dc:creator>
		<pubDate>Thu, 04 Jan 2007 03:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3468</guid>
		<description>&amp;lt = &lt;</description>
		<content:encoded><![CDATA[<p>&amp;lt = &lt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pile0nades</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3467</link>
		<dc:creator>pile0nades</dc:creator>
		<pubDate>Thu, 04 Jan 2007 03:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3467</guid>
		<description>Oops, comment got cut off. The fix is:

  attachLink = row.cells[0].getElementsByTagName(&quot;a&quot;);
  for(var j = 0; j &amp;lt attachLink.length; j++) {
    attachHref = attachLink[i].href;
    if (!attachHref.match(/attachment\.cgi\?id\=\d+/))
      continue;
  }</description>
		<content:encoded><![CDATA[<p>Oops, comment got cut off. The fix is:</p>
<p>  attachLink = row.cells[0].getElementsByTagName(&#8220;a&#8221;);<br />
  for(var j = 0; j &amp;lt attachLink.length; j++) {<br />
    attachHref = attachLink[i].href;<br />
    if (!attachHref.match(/attachment\.cgi\?id\=\d+/))<br />
      continue;<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pile0nades</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3466</link>
		<dc:creator>pile0nades</dc:creator>
		<pubDate>Thu, 04 Jan 2007 03:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3466</guid>
		<description>This script doesn&#039;t work when my &lt;a href=&quot;http://dev.userscripts.org/scripts/show/6545&quot; rel=&quot;nofollow&quot;&gt;Bugzilla Enhancements&lt;/a&gt; script is installed, because it detects the comment links it adds and fails on the attachment.cgi check. The fix is to change:

  attachLink = row.cells[0].getElementsByTagName(&quot;a&quot;)[0];
  if (!attachLink)
    continue;

  attachHref = attachLink.href;
  if (!attachHref.match(/attachment\.cgi\?id\=\d+/))
    continue;

to:

  attachLink = row.cells[0].getElementsByTagName(&quot;a&quot;);
  for(var j = 0; j </description>
		<content:encoded><![CDATA[<p>This script doesn&#8217;t work when my <a href="http://dev.userscripts.org/scripts/show/6545" rel="nofollow">Bugzilla Enhancements</a> script is installed, because it detects the comment links it adds and fails on the attachment.cgi check. The fix is to change:</p>
<p>  attachLink = row.cells[0].getElementsByTagName(&#8220;a&#8221;)[0];<br />
  if (!attachLink)<br />
    continue;</p>
<p>  attachHref = attachLink.href;<br />
  if (!attachHref.match(/attachment\.cgi\?id\=\d+/))<br />
    continue;</p>
<p>to:</p>
<p>  attachLink = row.cells[0].getElementsByTagName(&#8220;a&#8221;);<br />
  for(var j = 0; j</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Miller</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3464</link>
		<dc:creator>Dave Miller</dc:creator>
		<pubDate>Thu, 04 Jan 2007 01:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3464</guid>
		<description>Of course, you could always HTML-escape the entire thing and put it in an HTML content type in a &lt;pre&gt; block.</description>
		<content:encoded><![CDATA[<p>Of course, you could always HTML-escape the entire thing and put it in an HTML content type in a &lt;pre&gt; block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Ruderman</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3463</link>
		<dc:creator>Jesse Ruderman</dc:creator>
		<pubDate>Thu, 04 Jan 2007 00:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3463</guid>
		<description>&lt;blockquote&gt;while most IE users will prefer a server-side text/plain so they can view the source in a browser window&lt;/blockquote&gt;

Except that (as justdave pointed out) IE would do its bogus content sniffing and decide to parse the attachment as HTML anyway.  So maybe &quot;view-source:&quot; is the right thing to do for IE too.</description>
		<content:encoded><![CDATA[<blockquote><p>while most IE users will prefer a server-side text/plain so they can view the source in a browser window</p></blockquote>
<p>Except that (as justdave pointed out) IE would do its bogus content sniffing and decide to parse the attachment as HTML anyway.  So maybe &#8220;view-source:&#8221; is the right thing to do for IE too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Ruderman</title>
		<link>http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/comment-page-1/#comment-3462</link>
		<dc:creator>Jesse Ruderman</dc:creator>
		<pubDate>Wed, 03 Jan 2007 22:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/01/03/updated-version-of-bug-attachment-source/#comment-3462</guid>
		<description>It might make sense to add the &quot;source&quot; feature to Bugzilla, or at least to Bugzilla installations used for tracking bugs in web browsers (mozilla&#039;s, webkit&#039;s, and opera&#039;s).  But there are browser compatibility issues: Firefox users will prefer &quot;view-source:&quot; for syntax highlighting, while most IE users will prefer a server-side text/plain so they can view the source in a browser window.  Firefox users can take advantage of &quot;jar:&quot; but users of other browsers cannot.</description>
		<content:encoded><![CDATA[<p>It might make sense to add the &#8220;source&#8221; feature to Bugzilla, or at least to Bugzilla installations used for tracking bugs in web browsers (mozilla&#8217;s, webkit&#8217;s, and opera&#8217;s).  But there are browser compatibility issues: Firefox users will prefer &#8220;view-source:&#8221; for syntax highlighting, while most IE users will prefer a server-side text/plain so they can view the source in a browser window.  Firefox users can take advantage of &#8220;jar:&#8221; but users of other browsers cannot.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

