- Fix doc typo
- When a table cell contains a single input, use its value in
HtmlQuery.table/2
output. Useful when a table column is a checkbox, or a disabled input. HtmlQuery.form_fields/1
returnstrue
orfalse
in place of strings.
Retired: Accidentally introduced breaking changes.
Retired: Accidentally introduced breaking changes.
HtmlQuery.form_fields/1
returns singular value for checkboxes where name does not end in[]
.
HtmlQuery.form_fields/1
uses the value of selected options when different from the inner text.
- deprecate
HtmlQuery.table
'scolumns
option in favor ofonly
- add
except
option toHtmlQuery.table
- require Elixir 1.15 or later
- test against the latest Elixir and Erlang
- Documentation updates
- Update deps.
- Fix compiler warnings on
HtmlQuery.reject/2
.
HtmlQuery.reject/2
removes nodes that match the given selector.
- Fix text of error message produced by
HtmlQuery.table
HtmlQuery.table
can now optionally return the table as a list of maps.
- No changes from 0.8.0.
HtmlQuery.table
does not return the header row ifheaders: false
is set.
HtmlQuery.table/2
raises if a given column name does not exist in the table.
- Update
Moar
to fix bug whereHtmlQuery.form_fields/1
would return%{}
instead of[]
when no checkboxes were checked.
HtmlQuery.table/2
can accept a list of column names to filter by.
HtmlQuery.form_fields/1
handles arrays of checkboxes.
- Fix typespec on
HtmlQuery.table/2
- Add
columns
option toHtmlQuery.table
, which returns only the given columns.
- Dependency on
Moar
allows for any version greater than or equal to 1.24.1.
HtmlQuery.form_fields/1
only returns inputs that have aname
attribute.
HtmlQuery.form_fields/1
now handles checkboxes and radio buttons.
HtmlQuery.form_fields/1
response includesselect
fields.
- Add
HtmlQuery.table/1
which returns the contents of a table's cells as a list of lists.
- Fix typespec
- Raise
HtmlQuery.QueryError
instead ofRuntimeError
.- includes selector.
- Relax Floki version restriction.
- Fix typespec for
HtmlQuery.find/2
HtmlQuery.form_fields/1
converts dashes in field names to underscores.
- Documentation and typespec updates
- Initial release