Closed
Bug 198990
Opened 23 years ago
Closed 22 years ago
constructor window.Selection confesses to be an object instead of function
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: georg, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030315
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030315
The constructor function of the Selection object returned by window.getSelection
confesses to be an object instead of a function.
constructor functions are usually functions not objects.
I assume a bug in the prototype chain of Selection.
Selection has an enumerable property named prototype.
This is at least unusual. It is also unusual to implement a call operator for an
object.
There is probably a typo or something similiar in the source code that causes
this function to appear as an unusual object.
Reproducible: Always
Steps to Reproduce:
a=getSelection();
alert(typeof a.constructor); // alerts "object"
Actual Results:
alerts "object"
Expected Results:
should alert "function
Comment 1•22 years ago
|
||
dup of bug 71988. Please reopen if you don't agree, thanks!
*** This bug has been marked as a duplicate of 71988 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•