Some things in the specs have behaviours that browser makers are required to adhere to. But other areas are a bit gray, where there is no definite guidance on implementation, so sometimes the behaviour is different from browser to browser.
Take a look, for example, at the select() method, which allows you to use JavaScript to select the text inside an input or textarea element.
Take a look, for example, at the select() method, which allows you to use JavaScript to select the text inside an input or textarea element.
view source