[ticket/12093] Check that document.selection is supported.

PHPBB3-12093
Merge remote-tracking branch 'remotes/prototech/ticket/12093' into develop-olympus

* remotes/prototech/ticket/12093:
  [ticket/12093] Check that document.selection is supported.