aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 92942012def..a30e923cee8 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -2289,6 +2289,16 @@ impl DocumentMethods for Document {
self.set_body_attribute(&atom!("bgcolor"), value)
}
+ // https://html.spec.whatwg.org/multipage/#dom-document-fgcolor
+ fn FgColor(&self) -> DOMString {
+ self.get_body_attribute(&atom!("text"))
+ }
+
+ // https://html.spec.whatwg.org/multipage/#dom-document-fgcolor
+ fn SetFgColor(&self, value: DOMString) {
+ self.set_body_attribute(&atom!("text"), value)
+ }
+
// https://html.spec.whatwg.org/multipage/#dom-tree-accessors:dom-document-nameditem-filter
fn NamedGetter(&self, _cx: *mut JSContext, name: DOMString, found: &mut bool) -> *mut JSObject {
#[derive(JSTraceable, HeapSizeOf)]