XUL isn't going away on Gecko, and Gecko isn't going away on Mozillas
anytime soon, and they won't break existing GRE-based applications by
removing those properties.
We are do for some major changes in this industry. But regardless,
there is a precedent for Gecko removing XUL methods from the DOM, even
those in widespread use. See getBoxObjectFor. Last I checked, it
wasn't gone, but deprecated and pending deletion.
It has worked fine in several Web editors, including that of MediaWiki (you
may have heard about it -- Wikipedia is based on it), for years.
I didn't say it wouldn't work fine (if properly feature tested.) I'm
sure they don't use it exclusively; in fact, they must have at least
three branches, where only two are needed.
You really should explore the alternatives.
Maybe I will, but I will always regard XUL with skepticism when it
comes to cross-browser solutions. And I certainly won't recommend it
until I have more information.
It takes two *assignments* to
select text in a form control using .selectionStart and .selectionEnd.
It
takes at least three *calls* to do it with Range objects. Guess why other
vendors (they are in WebCore because they are in KHTML) decided to implement
Gecko's .selection* properties.
Who cares? You only have to write the wrapper once. And I am even
less trusting of an imitation XUL method. Would you trust
document.all in Gecko?
How do I figure that they *are* there? Well, that they are *there*.
Thanks.
However, that wrapper needs not, and in the case of form controls should
not, use Range objects only.
That's your opinion and I can't say I agree with it.