Closed
Bug 1676333
Opened 4 years ago
Closed 4 years ago
[meta] add support for restricted subset of HTML
Categories
(Firefox :: Pioneer, enhancement)
Firefox
Pioneer
Tracking
()
VERIFIED
FIXED
84 Branch
Tracking | Status | |
---|---|---|
firefox84 | --- | verified |
People
(Reporter: rhelmer, Assigned: rhelmer)
Details
(Keywords: feature-testing-meta)
Attachments
(1 file)
The only formatting about:ion
currently supports are line-feeds which get translated into bullet points, supporting a strict subset of HTML would be better.
For instance:
bold/emphasis
bullet points and ordered lists
links
[...]
We've investigated a few other options:
- frames (either iframe or <browser>) - getting the security settings correct here is tough, and the CSS layout as well.
- markdown parser. adding this in-tree feels riskier at this stage
- having study partners display their own form. this makes the onboarding experience pretty rocky.
The implementation I've been working on does takes output from remote-settings (which uses content signatures) and then uses DOMParser
and creates a brand-new DOM tree, only copying over an allow-list of tag names and attributes. The textContent
of each node is transferred over as well.
Assignee | ||
Comment 1•4 years ago
|
||
Pushed by rhelmer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/afd7ba1670b0 restricted HTML support for Ion r=Dexter,freddyb
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Updated•3 years ago
|
Status: RESOLVED → VERIFIED
Keywords: feature-testing-meta
Updated•3 years ago
|
Summary: add support for restricted subset of HTML → [meta] add support for restricted subset of HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•