You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on Windows 11 22H2 using Firefox Version 139.0.4.
Steps to reproduce
Go to the site, go to the CSS category, choose any property and look at the Result section (if available).
You can also see if you inspect the example there is only a tag and an empty body tag.
Looking at a typical CSS document at MDN's GitHub repository, its Example and Try It sections are stored as fenced code blocks in its markdown source. However, only one type of section appears in the DevDocs version.
The Try It sections don't get deleted with this filter, and they appear undifferentiated in the final document.
Plus, I'm not sure if I can find any code that would actually take these code blocks, unescape them, and run them in a sandboxed <iframe>. It'd probably be relatively easy once we'd get to that point, considering how permissive HTML5's parser is.
Activity
TheV360 commentedon Jul 16, 2025
devdocs/lib/docs/filters/mdn/clean_html.rb
Line 11 in c0089c1
It looks like when DevDocs scrapes MDN's content, their scraper filters out hidden elements.
Looking at a typical CSS document at MDN's GitHub repository, its Example and Try It sections are stored as fenced code blocks in its markdown source. However, only one type of section appears in the DevDocs version.
The Try It sections don't get deleted with this filter, and they appear undifferentiated in the final document.
https://github.com/mdn/content/blob/1c4e44b9e52afd2dee773171ca67c37ee9d91f37/files/en-us/web/css/filter-function/blur/index.md?plain=1#L13-L33
However, the Example sections do get deleted, because there's these
hiddentags as part of each code block.https://github.com/mdn/content/blob/e522944060c9b7b17c1a9f373ecf4503b8d14445/files/en-us/web/css/filter-function/blur/index.md?plain=1#L102-L106
(I really wish these code blocks embedded...)
Plus, I'm not sure if I can find any code that would actually take these code blocks, unescape them, and run them in a sandboxed <iframe>. It'd probably be relatively easy once we'd get to that point, considering how permissive HTML5's parser is.
srinivas-batthula commentedon Aug 12, 2025
Hi,
Is this issue still open? I’d like to work on it if possible.