ilyakharlamov / xulgear

Automatically exported from code.google.com/p/xulgear
1 stars 1 forks source link

XUL gear 1.0.9 is not able to open xul files from #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a xul file by using the Add-On Builder 
(https://addons.mozilla.org/en-US/developers/tools/builder)
2. unzip the xpi file
3. Start XUL gear 1.0.9 (Firefox: Extras/XUL-Gear ausführen
4. File/Öffnen
5. select about.xul (in chrome/content of the extension dir)

Example xul file:
<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://responsetracker/locale/about.dtd">

<dialog title="&about; Response Tracker" orient="vertical" autostretch="always" 
onload="sizeToContent()" buttons="accept" 
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <groupbox align="center" orient="horizontal">
    <vbox>
      <text value="Response Tracker" style="font-weight: bold; font-size: x-large;"/>
      <text value="&version; 1.0"/>
      <separator class="thin"/>
      <text value="&createdBy;" style="font-weight: bold;"/>
      <text value="Developer Name, Company Name"/>
      <separator class="thin"/>
    </vbox>
  </groupbox>
</dialog>

What is the expected output? What do you see instead?
2 elements in the left hand upper corner of XUL gear is expected, but you can 
only see the "#xml-stylesheet". An additional "dialog" entry is expected to be 
there, too.

What version of the product are you using? On what operating system?
XUL gear 1.0.9 in Firefox 3.6.12 at windows 7 32-bit.

Please provide any additional information below.
File/XUL exportieren rejects with the dialog "TypeError: element is null".

It seams that the following is a problem for XUL gear:
1) "&" (in the "title" attribute of the dialog element; results in missing 
entries in XULgear)
2) "text" elements (under the vbox element; are missing in XULgear under vbox 
and forces XUL to "hide" following separator elements too. If seperator is 
before a text element then the seperator is not hidden by XULgear).

Looks like a parse error.

Original issue reported on code.google.com by myNameIs...@googlemail.com on 28 Nov 2010 at 8:58

GoogleCodeExporter commented 9 years ago
The more i think about it one of the above issues is probably a bug of the 
Add-on Builder at Developer Hub 
(https://addons.mozilla.org/en-US/developers/tools/builder).
As far as i can see in the XUL reference 
(https://developer.mozilla.org/en/XUL_Reference) the "text" element is not a 
valid xul element. I will post that issue to them. 

But the other things are remain issues of XUL gear.

Original comment by myNameIs...@googlemail.com on 28 Nov 2010 at 10:50

GoogleCodeExporter commented 9 years ago
The 
"&about;", 
"&version;" and 
"&createdBy;" 
are placeholder for translation (chrome/locale/en-US/about.dtd) XUL gear should 
support placeholders.

Original comment by myNameIs...@googlemail.com on 28 Nov 2010 at 10:57

GoogleCodeExporter commented 9 years ago
I couldn't get XUL gear to show/edit a local XUL for me. I think the reason may 
be, that current Firefox (v 21) doesn't allow 'remote XUL' - it only allows XUL 
that comes from 'chrome:' urls.

Original comment by peter.kehl on 17 May 2013 at 12:13