Skip to content
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

html: support print() of selection #119

Open
chriswhong opened this issue Sep 28, 2021 · 1 comment
Open

html: support print() of selection #119

chriswhong opened this issue Sep 28, 2021 · 1 comment

Comments

@chriswhong
Copy link
Contributor

calling print() on a selection yields:

struct(attr = <built-in function attr>, children = <built-in function children>, children_filtered = <built-in function children_filtered>, contents = <built-in function contents>, eq = <built-in function eq>, filter = <built-in function filter>, find = <built-in function find>, first = <built-in function first>, get = <built-in function get>, has = <built-in function has>, last = <built-in function last>, len = <built-in function len>, parent = <built-in function parent>, parents_until = <built-in function parents_until>, siblings = <built-in function siblings>, text = <built-in function text>)

I am currently in need of a way to inspect what was captured in the selection. jQuery has an innerHTML() method that can be helpful for this, but I think calling console.log() with the jQuery object also reveals an array of the elements that were selected.

@danielsitnik
Copy link

I'm also struggling with this right now, the filter method is not returning what I expect and I have no way of knowing the position it actually is inside the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants