prepare-option ( document name -- )


Vocabulary
html5

Inputs
documentan object
namean object


Outputs
None

Definition


:: prepare-option ( document name -- )
document select-in-scope? [
document name "option" = [ "optgroup" ] [ "" ] if
generate-implied-end-tags
] [
document "option" current-element-named?
[ document open-elements>> pop drop ] when
] if ;