Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web app gets sanitized #43

Closed
shaun-man opened this issue Sep 16, 2022 · 1 comment
Closed

Web app gets sanitized #43

shaun-man opened this issue Sep 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@shaun-man
Copy link

shaun-man commented Sep 16, 2022

Describe the bug
Web app gets sanitized when running

To reproduce
Steps to reproduce the behavior:

  1. Using Android Studio Flutter dev environment, create project using the example Model Viewer Plus app
  2. Add button element (see below) via innerModelViewerHtml, add any JS via relatedJs
  3. Build for Chrome or Edge
  4. Look in the Run tab, messages appear saying "Removing disallowed element ..." and "Removing disallowed attribute ..."
  5. In the debug browser, the button appears top left instead of on the model
  6. Use DevTools to see that the script element was removed, and attributes of the button have been removed

Expected behavior
The web app includes the button element and the script element exactly as specified in main.dart

More details
Here is the button element that you can use for testing:
'''

Hole 1

'''

@shaun-man shaun-man added the bug Something isn't working label Sep 16, 2022
@Foldblade
Copy link
Collaborator

Sorry for that. Please try #45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants