Closed Bug 977374 Opened 12 years ago Closed 12 years ago

document.getElementById("") returns "null" error when I want manipulate elements placed in the <toolbarpalette id="BrowserToolbarPalette">

Categories

(Firefox :: Toolbars and Customization, defect)

29 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: leszekz, Unassigned)

References

Details

When I try manipulate elements placed in the <toolbarpalette id="BrowserToolbarPalette"> Browser Console returns error: TypeError: document.getElementById(...) is null Expected behavior: Code should return requested element ID.
This wasn't something that changed in Australis, and has always been the case. The palette is removed from the DOM and is accessible through gNavToolbox.palette, from which you can getElementsByAttribute, iterate over children, or querySelector to find the element you need.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.