selectedcontent-enabled? ( element select -- ? )


Vocabulary
html5

Inputs
elementan object
selectan object


Outputs
?an object


Definition


:: selectedcontent-enabled? ( element select -- ? )
element node-ancestors :> ancestors ancestors
[ "select" html-element-named? ] count 1 = ancestors [
{
[ html-element? ]
[ name>> { "option" "selectedcontent" } member? ]
} 1&&
] any? not and select ancestors node-member? and ;