You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintain an array of predicates in the higher level Lhs class. when function in Lhs adds predicate to the array. Other Lhs subclasses check that all predicates in the array are satisfied before returning the element.
The text was updated successfully, but these errors were encountered:
I assume you also plan for .when() to work on dom() LHSs as we talked about yesterday, since you're proposing to implement it in the top-level Lhs class. Sounds good to me. Go for it.
Takes a predicate that can further specify which nodes to select
Example:
type(‘priceish’).when(fnode => fnode.element.tagName.len > 5)
Maintain an array of predicates in the higher level Lhs class. when function in Lhs adds predicate to the array. Other Lhs subclasses check that all predicates in the array are satisfied before returning the element.
The text was updated successfully, but these errors were encountered: