Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.2
2021.2.0b13
2022.1
Issue ID
1369101
Regression
No
WebGL build fails to execute 'querySelector' if the canvas id starts with a '#' in Unity Play
How to reproduce:
1. Open the attached project from "UnityPlayProto21.zip"
2. Navigate to "Publish" -> "WebGL Project" -> "Build and Publish"
3. When the build succeeds in publishing it'll open in an internet browser, then open the browser's Console and start the game
Expected result: WebGL build succeeds in ignoring '#' in the canvas ID
Actual result: WebGL build doesn't run due to a '#' in the canvas ID
Reproducible with: 2021.2.1f1, 2022.1.0a13
Not reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.28f1
Note:
1. It appears that the new WebGL loader doesn't check for '#'
Comments (1)
-
xaldin-76
Nov 29, 2022 00:35
Reproducible in 2021.3.13f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 2022.1):
Fixed in 2022.2.0a4
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b9.
No longer crashes.
Resolution Note (fix version 2021.2):
Fixed in 2021.2.13f1.
No longer crashes.