Commit e542fb5
HtmlMesh doesn't handle html comment (mrdoob#23657)
* HTMLMesh fix html comment, constants and basic html example
HTMLMesh was not working when the html has a comment (see err below). And use Node constants https://developer.mozilla.org/fr/docs/Web/API/Node/nodeType. Add basic example of html with list in webxr_vr_sandbox
```
HTMLMesh.js:258 Uncaught TypeError: Cannot read properties of undefined (reading 'display')
at drawElement (HTMLMesh.js:258)
at drawElement (HTMLMesh.js:307)
at html2canvas (HTMLMesh.js:337)
at new HTMLTexture (HTMLMesh.js:54)
at new HTMLMesh (HTMLMesh.js:14)
at init (webxr_vr_sandbox.html:224)
at webxr_vr_sandbox.html:62
```
* Update webxr_vr_sandbox.html
* Update webxr_vr_sandbox.html
Co-authored-by: mrdoob <[email protected]>1 parent c89e54f commit e542fb5
File tree
2 files changed
+12
-4
lines changed- examples
- jsm/interactive
- js/interactive
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
336 | | - | |
| 340 | + | |
337 | 341 | | |
338 | 342 | | |
339 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
358 | | - | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
0 commit comments