| Index: Source/WebCore/html/HTMLElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/HTMLElement.cpp (revision 105335)
|
| +++ Source/WebCore/html/HTMLElement.cpp (working copy)
|
| @@ -595,7 +595,7 @@
|
| {
|
| if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "afterEnd")) {
|
| ContainerNode* parent = element->parentNode();
|
| - if (parent && parent->isDocumentNode()) {
|
| + if (parent && !parent->isElementNode()) {
|
| ec = NO_MODIFICATION_ALLOWED_ERR;
|
| return 0;
|
| }
|
|
|