|
@@ -1179,6 +1179,8 @@ Element* Element::GetElementById(const String& id)
|
|
|
return this;
|
|
return this;
|
|
|
else if (id == "#document")
|
|
else if (id == "#document")
|
|
|
return GetOwnerDocument();
|
|
return GetOwnerDocument();
|
|
|
|
|
+ else if (id == "#parent")
|
|
|
|
|
+ return this->parent;
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
Element* search_root = GetOwnerDocument();
|
|
Element* search_root = GetOwnerDocument();
|