1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-17 01:32:22 +02:00

Added missed errors to HTMLElement interface (#375)

* Added missed errors to HTMLElement interface

* Fixed test suit
This commit is contained in:
Tim Voronov
2019-09-06 21:02:41 -04:00
committed by GitHub
parent 2d645434d8
commit c773509469
14 changed files with 134 additions and 121 deletions

View File

@ -27,7 +27,11 @@ func AttributeGet(ctx context.Context, args ...core.Value) (core.Value, error) {
names := args[1:]
result := values.NewObject()
attrs := el.GetAttributes(ctx)
attrs, err := el.GetAttributes(ctx)
if err != nil {
return values.None, err
}
for _, n := range names {
name := values.NewString(n.String())