Closed Bug 1104063 Opened 10 years ago Closed 4 years ago

CSS Code Snippets Don't Allow Embedded HTML

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jezdez, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do?
================


I don't know if this is the right place to post the problem (basically if this is a problem with Kuma or the documentation), but I saw it in a number of places so I figured I'd post about it here.

It looks like when trying to format a code snippet of CSS, actually displaying it on the page causes all the HTML to be escaped. Meanwhile in the editor, it formats the selection properly. I think it becomes pretty obvious with an example, so here's one: https://developer.mozilla.org/en-US/docs/Web/CSS/animation#Syntax


What happened?
==============
 

What should have happened?
==========================
 

Is there anything else we should know?
======================================
Original ticket: https://github.com/mozilla/kuma/issues/2699
This is a limitation of prism.js which gets run on the page but not on in the wiki editor. 

In Bug 1102508 we are trying to find a solution specifically for the syntax boxes, (it would not apply for all code snippets).
Severity: normal → minor
Component: General → Wiki pages
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.