mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-05 00:49:00 +02:00
Added missed errors to HTMLElement interface (#375)
* Added missed errors to HTMLElement interface * Fixed test suit
This commit is contained in:
@ -57,7 +57,11 @@ func Hover(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return values.None, n.Hover(ctx)
|
||||
}
|
||||
|
||||
found := n.QuerySelector(ctx, selector)
|
||||
found, err := n.QuerySelector(ctx, selector)
|
||||
|
||||
if err != nil {
|
||||
return values.None, err
|
||||
}
|
||||
|
||||
if found == values.None {
|
||||
return values.None, core.Errorf(core.ErrNotFound, "element by selector %s", selector)
|
||||
|
Reference in New Issue
Block a user