mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
824c7ac613
commit
ce434dfb3e
5 changed files with 140 additions and 3 deletions
|
@ -156,6 +156,7 @@ DOMInterfaces = {
|
|||
'createElement',
|
||||
'createTextNode',
|
||||
'title',
|
||||
'body',
|
||||
],
|
||||
},
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue