Pass props.id through to the rendered Surface tag#40
Pass props.id through to the rendered Surface tag#40jesstelford wants to merge 1 commit intoreactjs:masterfrom
Conversation
This allows setting the element's id tag.
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
|
Haha, what? Are you serious? For adding a single line of code... Seems way too excessive :( edit I have signed the agreement. Any further action required by me? |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
May I ask what you need the |
I wanted to target the containing element in CSS, to float it for example. I was hoping to do that without extra wrapping markup, or relying on the rendered tag (due to being unknown).
Is this true for the root element of an SVG document? I don't want to propagate the id internally into the SVG/VML document, just target the root. |
|
It is not used for the root element at the moment. Not sure if we'll ever need that, so I just want to make sure we don't introduce something we may have to break later. If you're targeting it through CSS, wouldn't it be more appropriate to target it using Although, even https://github.com/sebmarkbage/art/blob/master/modes/vml/dom.js#L20 https://github.com/sebmarkbage/art/blob/master/modes/canvas/surface.js#L85-94 The |
This allows setting the element's id tag.
Note: I couldn't run the build or test suites - it appears gulp and jest aren't part of the package.json, and I received errors when attempting to install them.