Reviewed by Darin.
<rdar://problem/
4002864> REGRESSION(125-146) getElementById in onload fails in a test case involving external resources
Moved management of elementById hashtable from attach/detach to
insertedIntoDocument/removedFromDocument, to avoid being thrown
off by temporary detaches due to style recalcs.
* khtml/xml/dom_elementimpl.cpp:
(ElementImpl::insertedIntoDocument):
(ElementImpl::removedFromDocument):
(ElementImpl::attach):
(ElementImpl::updateId):
* khtml/xml/dom_elementimpl.h:
Make sure that insertedIntoDocument is called before firing any
DOM events.
* khtml/xml/dom_nodeimpl.cpp:
(NodeBaseImpl::dispatchChildInsertedEvents):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8724
268f45cc-cd09-0410-ab3c-
d52691b4dbfc