Equivalent of jQuery's contents().find() chained methods in pure JS
问题 So I've been trying to do the following bit of code without jQuery: $(".parent-class").contents().find(".child-class").css("color", "red"); I'm trying to edit the styles of an embedded Twitter feed and I could only do that by getting the module's child nodes using this snippet: $(".twitter-timeline").find(".timeline-Tweet-text").css("margin-bottom", "-10px"); for whatever reason. It is necessary that the pure JS code mimics this functionality. My full js function is: // Change the style of