<script> & <link> tags are ignored (possible solution included)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
Direzione di ricerca
Riproduci il comportamento con il gist RequireBin collegato e ispeziona iframe/index.js intorno all’assegnazione di source indicata, insieme alla dipendenza browser-module-sandbox. Confronta l’approccio Blob URL con il comportamento srcdoc segnalato nella scheda Network di Chrome DevTools. Il lavoro è completato quando i tag link e script dell’head HTML vengono elaborati come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Working with this gist: http://requirebin.com/?gist=01274d1e3cd82fa3d12cdb6466f42106
First off, this is an awesome tool! Thank you for giving me such a great head start on my own project.
I was fooling around locally with the project, specifically the <head> area of the app and attempted to place a <link> and a <script> tag in it. I was expecting the <link> tag (pointing to a Google Font) to work, and expecting the <script> tag to fail since there is no "some-library.js" on requirebin's servers.
Instead, I saw no attempt to download those assets from within Chrome (51) DevTool's Network tab. It was like the tags were being ignored completely.
After some searching, I found that I was able to get it to work by adjusting iframe's source code (project is depended on from requirebin and browser-module-sandbox), changing:
tempIframe.src = targetUrl
to
tempIframe.srcdoc = opts.html
It seems that Chrome didn't like the created Blob URL. Using srcdoc instead seemed to work. I doubt this is a very clever solution, and welcome any comments to this issue.
Mind you, I intend to fork this project to suit my own needs, so I'm not sure if this is even an appropriate issue to report. But I figured I'd raise it in case anyone else experienced similar issues.
Thanks!
Tim
- Lingua principale
- JavaScript
- Stelle
- 389
- Fork
- 73
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di max-mapper/requirebin
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
max-mapper/requirebin#132 · 2 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
max-mapper/requirebin#130 ·
-
HTTPS supportAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
max-mapper/requirebin#128 · 1 commento · 3 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
max-mapper/requirebin#125 · 1 commento · 1 reazione ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
max-mapper/requirebin#123 ·
Tutte le issue di max-mapper/requirebin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
curriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#3897 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno