summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-29 16:45:05 (GMT)
committer Rupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-30 14:02:27 (GMT)
commit98ad579a47319265989eb419f66e782a8a7ae4a6 (patch)
treeed2effe3460cbb67a0cbbe3f4f02544beebc4a57
parent6115e07b25016949aa60476293754a9c1e200998 (diff)
downloadlibdom-98ad579a47319265989eb419f66e782a8a7ae4a6.tar.gz
libdom-98ad579a47319265989eb419f66e782a8a7ae4a6.tar.bz2
We don't support making documents through dom internals
-rw-r--r--src/html/html_frame_element.c7
-rw-r--r--src/html/html_iframe_element.c7
-rw-r--r--test/testcases/tests/level2/html/HTMLFrameElement09.xml.kfail (renamed from test/testcases/tests/level2/html/HTMLFrameElement09.xml)0
-rw-r--r--test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail (renamed from test/testcases/tests/level2/html/HTMLIFrameElement11.xml)0
4 files changed, 10 insertions, 4 deletions
diff --git a/src/html/html_frame_element.c b/src/html/html_frame_element.c
index 16534b5..a03b32d 100644
--- a/src/html/html_frame_element.c
+++ b/src/html/html_frame_element.c
@@ -281,7 +281,10 @@ dom_exception dom_html_frame_element_get_content_document(
dom_html_frame_element *ele,
dom_document **content_document)
{
- *content_document = dom_node_get_owner(ele);
- return DOM_NO_ERR;
+ /* We don't support creating documents
+ from within here */
+ UNUSED(ele);
+ UNUSED(content_document);
+ return DOM_NOT_SUPPORTED_ERR;
}
diff --git a/src/html/html_iframe_element.c b/src/html/html_iframe_element.c
index 6f15b3e..0972d56 100644
--- a/src/html/html_iframe_element.c
+++ b/src/html/html_iframe_element.c
@@ -263,7 +263,10 @@ dom_exception dom_html_iframe_element_get_content_document(
dom_html_iframe_element *ele,
dom_document **content_document)
{
- *content_document = dom_node_get_owner(ele);
- return DOM_NO_ERR;
+ /* We don't support creating documents
+ from within here */
+ UNUSED(ele);
+ UNUSED(content_document);
+ return DOM_NOT_SUPPORTED_ERR;
}
diff --git a/test/testcases/tests/level2/html/HTMLFrameElement09.xml b/test/testcases/tests/level2/html/HTMLFrameElement09.xml.kfail
index 9ae0e16..9ae0e16 100644
--- a/test/testcases/tests/level2/html/HTMLFrameElement09.xml
+++ b/test/testcases/tests/level2/html/HTMLFrameElement09.xml.kfail
diff --git a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail
index 4220a43..4220a43 100644
--- a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml
+++ b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml.kfail