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:
@ -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())
|
||||
|
Reference in New Issue
Block a user