Closed
Bug 769351
Opened 13 years ago
Closed 13 years ago
Clicking on "Source" in the editor breaks templates (by HTML-izing quotes)
Categories
(developer.mozilla.org Graveyard :: Wiki pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bruant.d, Unassigned)
References
Details
(Whiteboard: t=2012-07-09)
Steps:
1) go to https://developer-new.mozilla.org/en-US/docs/JavaScript/Reference/Operators/set
2) click on "edit" (do not change anything)
3) click preview (everything is fine)
4) Click on "Source" to edit the source and not the WYSIWYG way
5) retry preview
Template is broken because of changing quotes
Syntax error at line 20, column 25: Expected "'", ")", "\"", [ \t\n\r;] or [\-.0-9] but "&" found.
20 | <p>{{js_minversion_note("1.8.1", ...
while it should have been
<p>{{js_minversion_note("1.8.1", ...
And it was until clicking on "Source"
| Reporter | ||
Comment 1•13 years ago
|
||
Clicking on "Source" again to get the WYSIWYG editor back fixes the template. Good to know :-)
Comment 2•13 years ago
|
||
I think there are actually smarts in kumascript to try to cope with this. Does this actually produce a scripting error on the page?
| Reporter | ||
Comment 3•13 years ago
|
||
Yes, the one I copy/pasted. Reproduce the steps, you should be able to see the error.
Comment 4•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/7988ecc276729d80b6dfec9b8f948cbe66362f9f
fix bug 769351 - Preventing entity conversion breaking templates
https://github.com/mozilla/kuma/commit/026343b38dea959cff3b36d7a492e2c5a711b1a1
Merge pull request #325 from darkwing/source-breaks-templates-769351
fix bug 769351 - Preventing entity conversion breaking templates
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Whiteboard: t=2012-07-09
| Assignee | ||
Updated•13 years ago
|
Version: Kuma → unspecified
| Assignee | ||
Updated•13 years ago
|
Component: Website → Landing pages
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•