Implement Document::head()

Implementation details according to the specification below:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head

This patch is for:
https://github.com/mozilla/servo/issues/1465
This commit is contained in:
Bruno de Oliveira Abinader 2014-01-07 10:15:49 -04:00
parent 608ee006ab
commit 17b35d52ff
4 changed files with 48 additions and 5 deletions

View file

@ -101,7 +101,7 @@ partial interface Document {
attribute DOMString title;
// attribute DOMString dir;
attribute HTMLElement? body;
//(HTML only)readonly attribute HTMLHeadElement? head;
readonly attribute HTMLHeadElement? head;
//(HTML only)readonly attribute HTMLCollection images;
//(HTML only)readonly attribute HTMLCollection embeds;
//(HTML only)readonly attribute HTMLCollection plugins;