mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement attribute 'fgColor' on 'document'
The 'text' attribute was implemented on '<body>' in #7841
This commit is contained in:
parent
29c42a9f78
commit
320263199f
9 changed files with 25 additions and 156 deletions
|
@ -2281,6 +2281,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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue