-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
p5.dom select('form')
does not select <form>
element
#6836
Comments
I looked into the source code and the reason that this is happening is due to some special handling in the Lines 228 to 234 in fd5dc4c
It's supposed to use the p5.Element as the container for the radio, but that only works if the element is a Lines 1465 to 1468 in fd5dc4c
So the Lines 1483 to 1485 in fd5dc4c
This means that calling The simplest fix here is that the portion of the code which conditionally calls |
Most appropriate sub-area of p5.js?
p5.js version
1.9.1
Web browser and version
No response
Operating system
Windows 10
Steps to reproduce this
Steps:
<form>
element in the HTML.form = select('form')
.p5.Element
withconsole.log(form.elt)
.<div></div>
??This previously worked correctly using v0.9.0 of the standalone
p5.dom
package. I wondered if it was an intentional change that you can no longer select by tag name, but the documentation says that "The string can be an ID, class, tag name, or a combination" and includes an example withselect('canvas')
.Snippet:
https://editor.p5js.org/lindapaiste2/sketches/QX6xg14AC
The text was updated successfully, but these errors were encountered: