Skip to content

Does not handle fragments #77

@joeframbach

Description

@joeframbach

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions