mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-17 01:32:22 +02:00
Feature/doc markup (#543)
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
This commit is contained in:
@ -10,9 +10,9 @@ import (
|
||||
)
|
||||
|
||||
// ATTR_SET sets or updates a single or more attribute(s) of a given element.
|
||||
// @param el (HTMLElement) - Target element.
|
||||
// @param nameOrObj (String | Object) - Attribute name or an object representing a key-value pair of attributes.
|
||||
// @param value (String) - If a second parameter is a string value, this parameter represent an attribute value.
|
||||
// @param {HTMLPage | HTMLDocument | HTMLElement} node - Target node.
|
||||
// @param {String | Object} nameOrObj - Attribute name or an object representing a key-value pair of attributes.
|
||||
// @param {String} value - If a second parameter is a string value, this parameter represent an attribute value.
|
||||
func AttributeSet(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
err := core.ValidateArgs(args, 2, core.MaxArgs)
|
||||
|
||||
|
Reference in New Issue
Block a user