Blog  |   Sitemap  |   Search  |   Language:  eng рус
Home
JavaScript UI FrameworkMostbet AzerbaycanBug TrackerBug details

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 "&#160;"><!ENTITY iexcl "&#161;"><!ENTITY cent "&#162;"><!ENTITY pound "&#163;"><!ENTITY curren "&#164;"><!ENTITY yen "&#165;"><!ENTITY brvbar "&#166;"><!ENTITY sect "&#167;"><!ENTITY uml "&#168;"><!ENTITY copy "&#169;"><!ENTITY ordf "&#170;"><!ENTITY laquo "&#171;"><!ENTITY not "&#172;"><!ENTITY shy "&#173;"><!ENTITY reg "&#174;"><!ENTITY macr "&#175;"><!ENTITY deg "&#176;"><!ENTITY plusmn "&#177;"><!ENTITY sup2 "&#178;"><!ENTITY sup3 "&#179;"><!ENTITY acute "&#180;"><!ENTITY micro "&#181;"><!ENTITY para "&#182;"><!ENTITY middot "&#183;"><!ENTITY cedil "&#184;"><!ENTITY sup1 "&#185;"><!ENTITY ordm "&#186;"><!ENTITY raquo "&#187;"><!ENTITY frac14 "&#188;"><!ENTITY frac12 "&#189;"><!ENTITY frac34 "&#190;"><!ENTITY iquest "&#191;"><!ENTITY Agrave "&#192;"><!ENTITY Aacute "&#193;"><!ENTITY Acirc "&#194;"><!ENTITY Atilde "&#195;"><!ENTITY Auml "&#196;"><!ENTITY Aring "&#197;"><!ENTITY AElig "&#198;"><!ENTITY Ccedil "&#199;"><!ENTITY Egrave "&#200;"><!ENTITY Eacute "&#201;"><!ENTITY Ecirc "&#202;"><!ENTITY Euml "&#203;"><!ENTITY Igrave "&#204;"><!ENTITY Iacute "&#205;"><!ENTITY Icirc "&#206;"><!ENTITY Iuml "&#207;"><!ENTITY ETH "&#208;"><!ENTITY Ntilde "&#209;"><!ENTITY Ograve "&#210;"><!ENTITY Oacute "&#211;"><!ENTITY Ocirc "&#212;"><!ENTITY Otilde "&#213;"><!ENTITY Ouml "&#214;"><!ENTITY times "&#215;"><!ENTITY Oslash "&#216;"><!ENTITY Ugrave "&#217;"><!ENTITY Uacute "&#218;"><!ENTITY Ucirc "&#219;"><!ENTITY Uuml "&#220;"><!ENTITY Yacute "&#221;"><!ENTITY THORN "&#222;"><!ENTITY szlig "&#223;"><!ENTITY agrave "&#224;"><!ENTITY aacute "&#225;"><!ENTITY acirc "&#226;"><!ENTITY atilde "&#227;"><!ENTITY auml "&#228;"><!ENTITY aring "&#229;"><!ENTITY aelig "&#230;"><!ENTITY ccedil "&#231;"><!ENTITY egrave "&#232;"><!ENTITY eacute "&#233;"><!ENTITY ecirc "&#234;"><!ENTITY euml "&#235;"><!ENTITY igrave "&#236;"><!ENTITY iacute "&#237;"><!ENTITY icirc "&#238;"><!ENTITY iuml "&#239;"><!ENTITY eth "&#240;"><!ENTITY ntilde "&#241;"><!ENTITY ograve "&#242;"><!ENTITY oacute "&#243;"><!ENTITY ocirc "&#244;"><!ENTITY otilde "&#245;"><!ENTITY ouml "&#246;"><!ENTITY divide "&#247;"><!ENTITY oslash "&#248;"><!ENTITY ugrave "&#249;"><!ENTITY uacute "&#250;"><!ENTITY ucirc "&#251;"><!ENTITY uuml "&#252;"><!ENTITY yacute "&#253;"><!ENTITY thorn "&#254;"><!ENTITY yuml "&#255;">]><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