Bug Data
ID: |
#0098 |
Status: |
Fixed |
Severity: |
Major |
Reporter: |
marcoas
|
Submitted: |
18-06-09 22:09 |
|
Product Data
Product: |
|
Ample SDK |
Component: |
|
XUL 1.0 |
Version: |
|
0.8.x |
OS: |
|
> Any |
Browser: |
|
> Any |
|
|
Description
<xul:dialog ....> parse error |
|
In my preliminar testing of this library I found an error in XUL Dialog parser.
I put the code below, taked from https://developer.mozilla.org/en/XUL/dialog , then Chrome and Firefox show me a parsing error
<xul:dialog id="donothing" buttons="accept,cancel" buttonlabelcancel="Cancel" buttonlabelaccept="Save>
<xul:dialogheader title="Options" description="My preferences"/>
<xul:groupbox>
<xul:caption label="Colour"/>
<xul:radiogroup>
<xul:radio label="Red"/>
<xul:radio label="Green" selected="true"/>
<xul:radio label="Blue"/>
</xul:radiogroup>
<xul:label value="Nickname"/>
<xul:textbox />
</xul:groupbox>
</xul:dialog>
If a remove the <xul:dialog ...> and </xul:dialog> lines, the rest of xul code is render correctly |
|
|
Messages written for this bug
Reporter: |
Lev Matematik
|
Submitted: |
18-06-09 22:45 |
Message: |
Don't you miss a double quote sign in the <xul:dialog [skipped] buttonlabelaccept="Save> line? |
|
Reporter: |
Lev Matematik
|
Submitted: |
19-06-09 03:11 |
Message: |
Also, if you used a development version of the runtime (runtime-dev.js), you would get meaningfull messages both in console and in your specific case on the screen. |
|
Reporter: |
marcoas
|
Submitted: |
22-06-09 16:56 |
Message: |
The code have a error (" after save), is't correct, but is my error in copy/paste.
But this is not the problem. With this code...
<xul:dialog id="donothing">
<xul:dialogheader title="Options" description="My preferences"/>
<xul:groupbox>
<xul:caption label="Colour"/>
<xul:radiogroup>
<xul:radio label="Red"/>
<xul:radio label="Green" selected="true"/>
<xul:radio label="Blue"/>
</xul:radiogroup>
<xul:label value="Nickname"/>
<xul:textbox />
</xul:groupbox>
</xul:dialog>
Firefox display an error in final of this code. Look at for a double " after height parameter, when close tag <table id="donothing"
This is the first part of the code generated by Firefox:
<!DOCTYPE div [<!ENTITY nbsp " "><!ENTITY iexcl "¡"><!ENTITY cent "¢"><!ENTITY pound "£"><!ENTITY curren "¤"><!ENTITY yen "¥"><!ENTITY brvbar "¦"><!ENTITY sect "§"><!ENTITY uml "¨"><!ENTITY copy "©"><!ENTITY ordf "ª"><!ENTITY laquo "«"><!ENTITY not "¬"><!ENTITY shy "­"><!ENTITY reg "®"><!ENTITY macr "¯"><!ENTITY deg "°"><!ENTITY plusmn "±"><!ENTITY sup2 "²"><!ENTITY sup3 "³"><!ENTITY acute "´"><!ENTITY micro "µ"><!ENTITY para "¶"><!ENTITY middot "·"><!ENTITY cedil "¸"><!ENTITY sup1 "¹"><!ENTITY ordm "º"><!ENTITY raquo "»"><!ENTITY frac14 "¼"><!ENTITY frac12 "½"><!ENTITY frac34 "¾"><!ENTITY iquest "¿"><!ENTITY Agrave "À"><!ENTITY Aacute "Á"><!ENTITY Acirc "Â"><!ENTITY Atilde "Ã"><!ENTITY Auml "Ä"><!ENTITY Aring "Å"><!ENTITY AElig "Æ"><!ENTITY Ccedil "Ç"><!ENTITY Egrave "È"><!ENTITY Eacute "É"><!ENTITY Ecirc "Ê"><!ENTITY Euml "Ë"><!ENTITY Igrave "Ì"><!ENTITY Iacute "Í"><!ENTITY Icirc "Î"><!ENTITY Iuml "Ï"><!ENTITY ETH "Ð"><!ENTITY Ntilde "Ñ"><!ENTITY Ograve "Ò"><!ENTITY Oacute "Ó"><!ENTITY Ocirc "Ô"><!ENTITY Otilde "Õ"><!ENTITY Ouml "Ö"><!ENTITY times "×"><!ENTITY Oslash "Ø"><!ENTITY Ugrave "Ù"><!ENTITY Uacute "Ú"><!ENTITY Ucirc "Û"><!ENTITY Uuml "Ü"><!ENTITY Yacute "Ý"><!ENTITY THORN "Þ"><!ENTITY szlig "ß"><!ENTITY agrave "à"><!ENTITY aacute "á"><!ENTITY acirc "â"><!ENTITY atilde "ã"><!ENTITY auml "ä"><!ENTITY aring "å"><!ENTITY aelig "æ"><!ENTITY ccedil "ç"><!ENTITY egrave "è"><!ENTITY eacute "é"><!ENTITY ecirc "ê"><!ENTITY euml "ë"><!ENTITY igrave "ì"><!ENTITY iacute "í"><!ENTITY icirc "î"><!ENTITY iuml "ï"><!ENTITY eth "ð"><!ENTITY ntilde "ñ"><!ENTITY ograve "ò"><!ENTITY oacute "ó"><!ENTITY ocirc "ô"><!ENTITY otilde "õ"><!ENTITY ouml "ö"><!ENTITY divide "÷"><!ENTITY oslash "ø"><!ENTITY ugrave "ù"><!ENTITY uacute "ú"><!ENTITY ucirc "û"><!ENTITY uuml "ü"><!ENTITY yacute "ý"><!ENTITY thorn "þ"><!ENTITY yuml "ÿ">]><div xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.w3.org/1999/xhtml"><table id="donothing" class="xul-dialog " cellpadding="0" cellspacing="0" border="0" width="100%" height="100%""> ... |
|
Reporter: |
Lev Matematik
|
Submitted: |
23-06-09 17:25 |
Message: |
The shadow template code seems to be broken. Fix will be available in the next weekly. |
|
Add a message
|
BugTracker
|