Closed Bug 1171002 Opened 9 years ago Closed 9 years ago

Support TextField#getTextFormat on empty TextFields

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(firefox41 affected)

RESOLVED INVALID
Tracking Status
firefox41 --- affected

People

(Reporter: till, Assigned: tschneider)

References

()

Details

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.
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);
Turns out the first sentence in comment 0 is a lie. The issue with the linked page is somewhere else.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.