Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

hub-client: `<script>` and hover handlers in `{=html}` blocks don't run in the preview

Aperta
#985 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
html, rust
Ambito
frontend, security

Direzione di ricerca

Start by tracing how the hub-client renders {=html} blocks in the preview and how that path handles scripts and event handlers. Check the raw HTML safety work in #167 and the related approach in #986 before choosing a direction. Done means either scripts and hover handlers work safely in previews or a supported sandboxed way to embed interactive prototypes is available.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

In the preview, <script> tags and hover handlers inside a {=html} block don't run. Only inline onclick handlers work.

Request

Let scripts in raw HTML blocks run in the preview, or, if that isn't safe, offer a supported way to embed an interactive prototype (for example a sandboxed iframe).

Impact

I write design docs that compare small UI prototypes, such as two variants of a picker. Reviewers need to hover and click through them to give useful feedback. Without scripts, I'm limited to static screenshots, and the most useful part of the review happens outside the doc.

Related
  • #43 (raw HTML safety, subsumed by #167)
  • #986 (serving project HTML files, another way to share a prototype)
Lingua principale
Rust
Stelle
283
Fork
20
Merge medio
19h 28m
PR unite (30g)
174

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/q2

Tutte le issue di quarto-dev/q2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.