mozilla

Revision 82343 of Building an Extension

  • Revision slug: Talk:Building_an_Extension
  • Revision title: Building an Extension
  • Revision id: 82343
  • Created:
  • Creator: Maian
  • Is current revision? No
  • Comment

Revision Content

Is there a downloadable extension template available? That would really help would-be extension authors... --Maian 03:07, 9 October 2005 (PDT)

There's one from another similar article: http://mozilla.doslash.org/stuff/helloworld.zip --Nickolay 12:15, 9 October 2005 (PDT)


Could someone elaborate a little more on what this means? "window is the localName value of the root element of the XUL document..." Where else, for example, does the corresponding word window also appear? I don't see how it is chosen. --Randomandy 06:00, 2005 October 11 (PDT)

It means the part of the tagname excluding the namespace prefix (if it exists) of the document's root element. So if you have some document that looks like <?xml version="1.0"?><xul:dialog xmlns:xul="(xul namespace)">...</xul:dialog>, dialog would be the localName of the root element. If it were just <dialog>...</dialog>, the localName would still be dialog. At least, that's what I think it's saying. I'm not familiar with XUL. --Maian 06:43, 11 October 2005 (PDT)

Revision Source

<p>Is there a downloadable extension template available? That would really help would-be extension authors... --<a href="User:Maian">Maian</a> 03:07, 9 October 2005 (PDT)
</p>
<dl><dd>There's one <a class="external" href="http://kb.mozillazine.org/Getting_started_with_extension_development#Resources">from another similar article</a>: http://mozilla.doslash.org/stuff/helloworld.zip --<a href="User:Nickolay">Nickolay</a> 12:15, 9 October 2005 (PDT)
</dd></dl>
<p><br>
Could someone elaborate a little more on what this means? <i>"window is the localName value of the root element of the XUL document..."</i> Where else, for example, does the corresponding word <i>window</i> also appear? I don't see how it is chosen.
--<a href="User:Randomandy">Randomandy</a> 06:00, 2005 October 11 (PDT)
</p>
<dl><dd> It means the part of the tagname excluding the namespace prefix (if it exists) of the document's root element. So if you have some document that looks like &lt;?xml version="1.0"?&gt;&lt;xul:dialog xmlns:xul="(xul namespace)"&gt;...&lt;/xul:dialog&gt;, dialog would be the localName of the root element. If it were just &lt;dialog&gt;...&lt;/dialog&gt;, the localName would still be dialog. At least, that's what I think it's saying. I'm not familiar with XUL. --<a href="User:Maian">Maian</a> 06:43, 11 October 2005 (PDT)
</dd></dl>
Revert to this revision