fix(docs): make submenu work with Firefox

Firefox does not implement innerText property, so we need to go
with the more widely implemented textContent property.