Element.optionSelector

MaybeNullElement!SomeElementType optionSelector(SomeElementType = Element)(string selector, string file = __FILE__, size_t line = __LINE__) if(is(SomeElementType : Element))

If a matching selector is found, it returns that Element. Otherwise, the returned object returns null for all methods.