Closed Bug 842259 Opened 11 years ago Closed 11 years ago

Invalid 'named access on the Window object' when an element is removed

Categories

(Core :: DOM: Core & HTML, defect)

18 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 425233

People

(Reporter: m.gotink, Unassigned)

Details

Attachments

(1 file)

Attached file Demo
User Agent: Opera/9.80 (Windows NT 5.1) Presto/2.12.388 Version/12.14

Steps to reproduce:

In javascript dynamically create an element with an id.
Remove the element.
Add an element with the same id again.


Actual results:

Named access by the id of the element always returns the first created element.


Expected results:

The named element should be undefined when it is removed from the DOM and point to the newly created element if it is created again.
As described in http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#named-access-on-the-window-object
Attachment #715077 - Attachment mime type: text/plain → text/html
Component: Untriaged → DOM
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
No longer depends on: 425233, 823227
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: