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
This commit is contained in:
Bruno de Oliveira Abinader 2013-12-18 17:17:43 -04:00
parent 824c7ac613
commit ce434dfb3e
5 changed files with 140 additions and 3 deletions

View file

@ -156,6 +156,7 @@ DOMInterfaces = {
'createElement',
'createTextNode',
'title',
'body',
],
},

View file

@ -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;