<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex Little &#187; html</title>
	<atom:link href="http://alexlittle.net/blog/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexlittle.net/blog</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 17:31:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Friday 25 August 06</title>
		<link>http://alexlittle.net/blog/2006/08/25/friday-25-august-06-3/</link>
		<comments>http://alexlittle.net/blog/2006/08/25/friday-25-august-06-3/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 15:05:25 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/2006/08/25/friday-25-august-06-3/</guid>
		<description><![CDATA[Found a way to replace the alt text &#8211; it involves creating a new element, assigning the required attributes and finally then overwriting the original img tag, here is some sample code: var oldImg = myNode.firstChild; var newImg = document.createElement(&#8216;img&#8217;); newImg.src = &#34;/new/path/to/image/jpg&#34;; newImg.alt = &#34;my new alt text&#34;; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myNode.replaceChild(newImg,oldImg); Note that this is [...]]]></description>
			<content:encoded><![CDATA[<p>Found a way to replace the alt text &#8211; it involves creating a new element, assigning the required attributes and finally then overwriting the original img tag, here is some sample code:</p>
<p>var oldImg = myNode.firstChild;<br />
var newImg = document.createElement(&#8216;img&#8217;);<br />
newImg.src = &quot;/new/path/to/image/jpg&quot;;<br />
newImg.alt = &quot;my new alt text&quot;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
myNode.replaceChild(newImg,oldImg);</p>
<p>Note that this is very basic example and probably only works when &#8216;myNode&#8217; has a single child node which is of type &#8216;img&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2006/08/25/friday-25-august-06-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

