Closed
Bug 861522
Opened 13 years ago
Closed 13 years ago
"JavaScript Compile-Time Error" in XUL file validations - choking on CDATA closing brackets and failing to parse files
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
FIXED
2013-04-18
People
(Reporter: davemgarrett, Assigned: basta)
Details
Attachments
(1 file)
|
783 bytes,
application/octet-stream
|
Details |
I'm getting a "JavaScript Compile-Time Error" in the addon validator for each XUL file I have with a CDATA block in its script.
<script type="application/javascript">
<![CDATA[
// something
]]>
</script>
Specifically, the error is reporting on the line with the closing brackets ("]]>"). Once upon a time in the distant past, people had to make them JS comments with an added "//" to not break old parsers, but that was a while ago and XUL never had a problem with this as far as I know. The addon validator used to handle this fine.
The result of this is that most of my XUL files are not getting validated at all.
Comment 1•13 years ago
|
||
Can you please attach a sample that generates this error?
| Reporter | ||
Comment 2•13 years ago
|
||
Flagfox 4.2.8:
https://addons.mozilla.org/firefox/downloads/file/203346/flagfox-4.2.8-sm+fx.xpi
Validator report for that file:
https://addons.mozilla.org/en-US/developers/addon/flagfox/file/203346/validation
This error applies to editaction.xul, options.xul, and preview.xul but not overlay.xul or about.xul as they do not have a CDATA block.
| Reporter | ||
Comment 3•13 years ago
|
||
Here's a reduced testcase XPI I just slapped together, and here's its validator report:
https://addons.mozilla.org/en-US/developers/upload/2b3201bcf6c541669ecfc263165e4405
| Reporter | ||
Updated•13 years ago
|
Attachment #737769 -
Attachment mime type: application/x-xpinstall → application/octet-stream
Updated•13 years ago
|
Assignee: nobody → mattbasta
Severity: major → normal
| Assignee | ||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → 2013-04-18
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•