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)

x86
Linux
defect
Not set
normal

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(&quot;1.8.1&quot;, ... while it should have been <p>{{js_minversion_note("1.8.1", ... And it was until clicking on "Source"
Clicking on "Source" again to get the WYSIWYG editor back fixes the template. Good to know :-)
Blocks: 756263
I think there are actually smarts in kumascript to try to cope with this. Does this actually produce a scripting error on the page?
Yes, the one I copy/pasted. Reproduce the steps, you should be able to see the error.
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
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: t=2012-07-09
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.