<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Sat, 22 Nov 2008 18:21:04 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Accessing the name attribute of a DIV 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/471/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/471/comments/</comments>
		<pubDate>Tue, 17 Oct 2006 15:25:59 +0000</pubDate>
		<dc:creator>jeremec</dc:creator>
		<category>Attribute, div, JavaScript, Name</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/471/</guid>
		<description>
			<![CDATA[
				<p>One way to group elements in HTML is to assign them a <b>name</b> attribute.  Multiple elements can share a name, then you can easily access them as an array using the <b><i>getElementsByName()</i></b> method.<br /><br />The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple <b><i>object.name</i></b> returns undefined.  In my case, it was a DIV in Firefox 1.5 that was behaving this way.<br /><br />There is a simple work around for this that works in Firefox, I haven't tested it in others.  It is to use the <b><i>getAttribute</i></b> method that is an extension of any element object.<br /><br />This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.</p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>