Support TextField#getTextFormat on empty TextFields

RESOLVED INVALID

Status

Firefox Graveyard
Shumway
RESOLVED INVALID
3 years ago
2 years ago

People

(Reporter: till, Assigned: tobytailor)

Tracking

Dependency tree / graph

Details

(URL)

(Reporter)

Description

3 years ago
Calling TextField#getTextFormat(0, 0) on an empty TextField is perfectly valid and should return the default TextFormat. We throw an out-of-bounds error instead.
(Assignee)

Comment 1

3 years ago
Couldn't verify such behavior. The following example throws an out-of-bounds error, even in the Flash Player:

var tf = new TextField();
var f = tf.getTextFormat(0, 0);
(Reporter)

Comment 2

3 years ago
Turns out the first sentence in comment 0 is a lie. The issue with the linked page is somewhere else.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.