you/yourself/your
Reference you
The you
reference is available within the tell command as a reference to current node being acted upon.
Most hyperscript features run within the context of an HTML element. For example, <div _="on click ...">
is an event handler that runs in the context of the <div>
that contains it. Within these scripts, you can use the me
expression as a link back to their associated HTML element.
If it makes the code more readable in English, yourself
can be used as an alias.
For possessive expressions, your
will also work, as in my property
instead of me.property
.
This uses the append command to update the contents of every <p>
tag.
tell <p/>
append "some value" to you
end
This uses the remove command to remove all elements with the disabled=true property
tell <[disabled=true]/>
remove yourself
end
This uses a possessive expression to decrement the value of every element targeted
tell <.counter/>
increment your value