Implement <body>'s "text" attribute

This commit is contained in:
Corey Farwell 2015-10-03 14:02:58 -04:00
parent 26dd123310
commit 64f4835a4f
10 changed files with 63 additions and 145 deletions

View file

@ -298,6 +298,9 @@ impl LayoutElementHelpers for LayoutJS<Element> {
let color = if let Some(this) = HTMLFontElementCast::to_layout_js(self) {
(*this.unsafe_get()).get_color()
} else if let Some(this) = HTMLBodyElementCast::to_layout_js(self) {
// https://html.spec.whatwg.org/multipage/#the-page:the-body-element-20
(*this.unsafe_get()).get_color()
} else {
None
};