<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: SpellingCow followup</title>
	<link>http://me.eae.net/archive/2006/09/05/spellingcow-followup/</link>
	<description>The journal of Emil A Eklund</description>
	<pubDate>Fri, 16 May 2008 05:29:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: Hakan Bilgin</title>
		<link>http://me.eae.net/archive/2006/09/05/spellingcow-followup/#comment-5694</link>
		<pubDate>Wed, 06 Sep 2006 23:18:38 +0000</pubDate>
		<guid>http://me.eae.net/archive/2006/09/05/spellingcow-followup/#comment-5694</guid>
					<description>Hi Emil,
Regarding transparent textarea + DIV; I have never liked that idea. A while back, I experimented with adding the contentEditable to Firefox with XBL but was to lazy to finish it. You can see a (buggy) demo of how much it is done, here:
http://www.challenger.se/samples/ff_contentEditable.htm

Anywho; I have a couple of questions about namespaces and I hope you can help me out.

1. In IE, there is a property named scopeName, which returns the namespace of the element/node. Do you know the equalling property to this in Firefox?
Properties such as localName, nodeName, etc returns the namespace with the nodeName united by the colon...but in uppercase. Which I don’t fancy at all...and I am not satisfied with my solution below...

--Javascript-------------------------- 

Node.prototype.__defineGetter__('scopeName', function() {
	var ln = this.localName.toString();
	return (ln.indexOf(':') &amp;#62; -1)? ln.split(':')[0] : 'HTML' ;
});

-------------------------------------- 

2. Do you know if it is possible to add namespaces to a document programmatically?

Thanks is advance...</description>
		<content:encoded><![CDATA[<p>Hi Emil,<br />
Regarding transparent textarea + DIV; I have never liked that idea. A while back, I experimented with adding the contentEditable to Firefox with XBL but was to lazy to finish it. You can see a (buggy) demo of how much it is done, here:<br />
<a href='http://www.challenger.se/samples/ff_contentEditable.htm' rel='nofollow'>http://www.challenger.se/samples/ff_contentEditable.htm</a></p>
<p>Anywho; I have a couple of questions about namespaces and I hope you can help me out.</p>
<p>1. In IE, there is a property named scopeName, which returns the namespace of the element/node. Do you know the equalling property to this in Firefox?<br />
Properties such as localName, nodeName, etc returns the namespace with the nodeName united by the colon&#8230;but in uppercase. Which I don’t fancy at all&#8230;and I am not satisfied with my solution below&#8230;</p>
<p>&#8211;Javascript&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </p>
<p>Node.prototype.__defineGetter__(&#8217;scopeName&#8217;, function() {<br />
	var ln = this.localName.toString();<br />
	return (ln.indexOf(&#8217;:') &gt; -1)? ln.split(&#8217;:')[0] : &#8216;HTML&#8217; ;<br />
});</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </p>
<p>2. Do you know if it is possible to add namespaces to a document programmatically?</p>
<p>Thanks is advance&#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
