mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8714 - frewsxcv:body-fgcolor, r=Ms2ger
Implement attribute 'fgColor' on 'document' The 'text' attribute was implemented on `<body>` in #7841 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8714) <!-- Reviewable:end -->
This commit is contained in:
commit
65108348aa
9 changed files with 25 additions and 156 deletions
|
@ -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)]
|
||||
|
|
|
@ -141,7 +141,7 @@ Document implements GlobalEventHandlers;
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#Document-partial
|
||||
partial interface Document {
|
||||
// [TreatNullAs=EmptyString] attribute DOMString fgColor;
|
||||
[TreatNullAs=EmptyString] attribute DOMString fgColor;
|
||||
|
||||
// https://github.com/servo/servo/issues/8715
|
||||
// [TreatNullAs=EmptyString] attribute DOMString linkColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue