Title: Preview a html with javascript type set on module. · Issue #117 · htmlpreview/htmlpreview.github.com · GitHub
Open Graph Title: Preview a html with javascript type set on module. · Issue #117 · htmlpreview/htmlpreview.github.com
X Title: Preview a html with javascript type set on module. · Issue #117 · htmlpreview/htmlpreview.github.com
Description: I have following line in my html: the lines: var loadJS = function (data) { if (data) { var script = document.createElement('script'); script.innerHTML = data; document.body.appendC...
Open Graph Description: I have following line in my html: the lines: var loadJS = function (data) { if (data) { var script = document.createElement('script'); script...
X Description: I have following line in my html: <script type = "module" src = "./src/main.js"></script> the lines: var loadJS = function (data) { if (data) { var script = document...
Opengraph URL: https://github.com/htmlpreview/htmlpreview.github.com/issues/117
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preview a html with javascript type set on module.","articleBody":"I have following line in my html:\r\n`\u003cscript type = \"module\" src = \"./src/main.js\">\u003c/script>`\r\n\r\nthe lines:\r\n`\tvar loadJS = function (data) {\r\n\t\tif (data) {\r\n\t\t\tvar script = document.createElement('script');\r\n\t\t\tscript.innerHTML = data;\r\n\t\t\tdocument.body.appendChild(script);\r\n\t\t}\r\n\t};`\r\n\r\nimport my main.js without the type set on module. Why the type of script is ignored?","author":{"url":"https://github.com/nodi-andy","@type":"Person","name":"nodi-andy"},"datePublished":"2022-09-20T20:53:07Z","url":"https://github.com/htmlpreview/htmlpreview.github.com/issues/117"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39051a28-943f-b465-f92e-208cd662521d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C608:232DFC:21F8C14:2C3D4EE:6B041290 |
| html-safe-nonce | c0d86c71b18bb382c125d98a48f6cdce46a528c35b5bc612de6b2980803873a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjA4OjIzMkRGQzoyMUY4QzE0OjJDM0Q0RUU6NkIwNDEyOTAiLCJ2aXNpdG9yX2lkIjoiNzk0MDMyNzgyMTEzNjg5MjU2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 973ec2abd5f3709c989393c08af0a5d5edf14b52c09d8649790267d23f52bc62 |
| hovercard-subject-tag | issue:1379982359 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/htmlpreview/htmlpreview.github.com/117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92cf020f7229220d9eef575deec46f3aa3997a86c209fbddf55f095e22f6cfee/htmlpreview/htmlpreview.github.com/issues/117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92cf020f7229220d9eef575deec46f3aa3997a86c209fbddf55f095e22f6cfee/htmlpreview/htmlpreview.github.com/issues/117 |
| og:image:alt | I have following line in my html: the lines: var loadJS = function (data) { if (data) { var script = document.createElement('script'); script... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nodi-andy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/htmlpreview/htmlpreview.github.com git https://github.com/htmlpreview/htmlpreview.github.com.git |
| octolytics-dimension-user_id | 2263620 |
| octolytics-dimension-user_login | htmlpreview |
| octolytics-dimension-repository_id | 5645556 |
| octolytics-dimension-repository_nwo | htmlpreview/htmlpreview.github.com |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5645556 |
| octolytics-dimension-repository_network_root_nwo | htmlpreview/htmlpreview.github.com |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width