if-inner-html
Syntax
if-inner-html: selector "string";
This conditional action will return true if the specified selector contains the specified string as its innerHTML.
selector = The selector you want to check. This can be any valid CSS selector that will return one result. If more than one result is gotten from the selector, the first one will be chosen. As will all the conditional selector references, you can use "me", "self", or "this" to reference the event selector.
string = The html you want to check. This must be contained in double-quotes (").
For example, this will return true if the element #myPTag contains the string "<span>Hello world.</span>".
@conditional helloWorldThere {
if-inner-html: #myPTag "<span>Hello world.</span>";
}
When used on an event selector with no selector in parentheses, it will default to checking "self". Eg. #myDiv:if-inner-html("<span>Hi</span>"): ...