We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a html fragment, not a whole document, and I want to get an attribute from the element.
This works for divs:
% echo '<div data-val="foo"></div>' | htmlq -a data-val div foo
However, it does not work for trs:
% echo '<tr data-val="foo"></tr>' | htmlq -a data-val tr (no output)
htmlq doesn't even echo the tr:
% echo '<div></div>' | htmlq div <div></div> % echo '<tr></tr>' | htmlq tr (no output)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a html fragment, not a whole document, and I want to get an attribute from the element.
This works for divs:
However, it does not work for trs:
htmlq doesn't even echo the tr:
The text was updated successfully, but these errors were encountered: