Slashdot Mirror


User: timdown

timdown's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Re:Since when is javascript only one language? on Was Standardizing On JavaScript a Mistake? · · Score: 1

    JavaScript itself is pretty consistent between browsers. It's the DOM that varies so much.

  2. Re:Got it wrong on Was Standardizing On JavaScript a Mistake? · · Score: 1

    For example, make a Visual Basic (or RealBasic if you're rabidly anti-Microsoft) form and add a scrolling textarea to it. Take a look at the properties inspector, and notice how many properties it has.

    Now do the same thing in DOM. Can Javascript tell which text is selected? No. Can it set the text color, size, or font? No. (There is such a thing as a rich-text textarea, with those options, but DOM API has virtually no access to any of it.) It's simply ridiculous how incomplete DOM is, and that's where your true problems lie.

    Not true - you can use the DOM Range (or proprietary TextRange in IE) to get the selected text from a textarea (admittedly it's not as straightforward as it could be), and JavaScript can access standard CSS properties to get and set the text colour, size and font. And what is this "rich-text textarea"?