Closed Bug 952234 Opened 11 years ago Closed 11 years ago

range.getClinetRects should return an empty array if its not in the document

Categories

(Core :: DOM: Selection, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: wesj, Unassigned)

Details

From http://dev.w3.org/csswg/cssom-view/#dom-range-getclientrects "The getClientRects() method, when invoked, must return an empty DOMRectList object if the range is not in the document and otherwise a DOMRectList object containing ... " We're seeing this return null in some cases in FF for Android, I assume because of http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsRange.cpp#2913 ?
I can't reproduce this the way I thought. Apologies.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.