aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2013-12-18 17:17:43 -0400
committerBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2013-12-20 10:58:03 -0400
commitce434dfb3ede57107b52bc60998095d434565117 (patch)
tree4c6873c1794ec81c334134b2767f679b75e2fd42 /src/components/script/dom/bindings/codegen
parent824c7ac613ebb80bb432ff6425c5e25c642b6afb (diff)
downloadservo-ce434dfb3ede57107b52bc60998095d434565117.tar.gz
servo-ce434dfb3ede57107b52bc60998095d434565117.zip
Implement Document's 'body' attribute
Implement Document's 'body' attribute (getter and setter). Proper implementation of setter requires Node::ReplaceChild(), which is currently a stub and will be done on a later step. This patch is for: https://github.com/mozilla/servo/issues/1428
Diffstat (limited to 'src/components/script/dom/bindings/codegen')
-rw-r--r--src/components/script/dom/bindings/codegen/Bindings.conf1
-rw-r--r--src/components/script/dom/bindings/codegen/Document.webidl2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/codegen/Bindings.conf b/src/components/script/dom/bindings/codegen/Bindings.conf
index b7e01242793..da82eae2a8c 100644
--- a/src/components/script/dom/bindings/codegen/Bindings.conf
+++ b/src/components/script/dom/bindings/codegen/Bindings.conf
@@ -156,6 +156,7 @@ DOMInterfaces = {
'createElement',
'createTextNode',
'title',
+ 'body',
],
},
diff --git a/src/components/script/dom/bindings/codegen/Document.webidl b/src/components/script/dom/bindings/codegen/Document.webidl
index 10d212910fc..ade88958b36 100644
--- a/src/components/script/dom/bindings/codegen/Document.webidl
+++ b/src/components/script/dom/bindings/codegen/Document.webidl
@@ -100,7 +100,7 @@ partial interface Document {
[SetterThrows]
attribute DOMString title;
// attribute DOMString dir;
- //(HTML only) attribute HTMLElement? body;
+ attribute HTMLElement? body;
//(HTML only)readonly attribute HTMLHeadElement? head;
//(HTML only)readonly attribute HTMLCollection images;
//(HTML only)readonly attribute HTMLCollection embeds;