The option itemChild doesn't take in account multiple element selector. The jQuery find method does support this. For example if I want to use { itemChild: 'a,span' }, the logic to hide all not matched elements will overrule all previous elements.
Ignoring the itemChild option in this case won't work, as then the method .text() is called, which - with above usecase - will result in the result Homekeyword (notice the absent space between the words Home and keyword).
The option
itemChild
doesn't take in account multiple element selector. The jQueryfind
method does support this. For example if I want to use{ itemChild: 'a,span' }
, the logic to hide all not matched elements will overrule all previous elements.Use case:
Ignoring the
itemChild
option in this case won't work, as then the method.text()
is called, which - with above usecase - will result in the resultHomekeyword
(notice the absent space between the wordsHome
andkeyword
).