-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels