style By Path
Sets the attributes to the element at the given path.
Throws
with ErrInvalidArgument if path resolves to an index inside a UTF-16 surrogate pair.
Sets the attributes to the elements in the path range between fromPath and toPath.