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

HTMLMesh: do not render the script tag #27953

Merged

Conversation

Elettrotecnica
Copy link
Contributor

Description

Dear maintainers,

in the following proposed change I add the "script" tag to those that are not rendered on the HTML mesh.

In my use case, I have some dynamic HTML which may end up containing some javascript code. So far, this code would be rendered as text together with the mesh, which is not the expected behavior IMO.

I have also taken the chance to cleanup some duplication and move all of the "skipping" logics in the function to the very beginning.

Thanks for any feedback on this

All the best

Antonio

… the script tag as well to the elements we skip
Elettrotecnica pushed a commit to Elettrotecnica/aframe-htmlmesh that referenced this pull request Mar 20, 2024
Elettrotecnica added a commit to Elettrotecnica/aframe-vr that referenced this pull request Mar 20, 2024
@Mugen87 Mugen87 added this to the r163 milestone Mar 21, 2024
@Mugen87 Mugen87 merged commit 7295b72 into mrdoob:dev Mar 21, 2024
11 checks passed
Elettrotecnica pushed a commit to Elettrotecnica/aframe-htmlmesh that referenced this pull request Mar 21, 2024
vincentfretin pushed a commit to AdaRoseCannon/aframe-htmlmesh that referenced this pull request Mar 21, 2024
See mrdoob/three.js#27953

Co-authored-by: Antonio Pisano <apisano@wu.ac.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants