Reads the given attribute from the element, parsed as relaxed JSON.
Returns undefined if the attribute value is blank or only consists of whitespace.
Throws a SyntaxError if the attribute value is an invalid JSON string.
The attribute name.
The cast attribute value.
Tip Your coding agent can search these docs locally with the Unpoly agent skill