Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMisc cleanup for DOM attributes #8404
Conversation
highfive
commented
Nov 8, 2015
|
Review status: 1 of 6 files reviewed at latest revision, 9 unresolved discussions. components/script/dom/htmliframeelement.rs, line 210 [r3] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo r=nox |
|
|
Misc cleanup for DOM attributes No functional change; just cleanups related to parsing attributes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8404) <!-- Reviewable:end -->
|
|
|
Fail seems legit
|
| match name { | ||
| &atom!("text") => AttrValue::from_legacy_color(value), | ||
| match *name { | ||
| atom!("bgcolor") | |
This comment has been minimized.
This comment has been minimized.
| fn get_background_color(&self) -> Option<RGBA> { | ||
| unsafe { | ||
| (&*self.upcast::<Element>().unsafe_get()) | ||
| .get_attr_for_layout(&ns!(""), &atom!("bgcolor")) |
This comment has been minimized.
This comment has been minimized.
frewsxcv
Nov 8, 2015
Member
Should this be bgColor?
I actually don't know, just pointing out one of these might be capitalized
This comment has been minimized.
This comment has been minimized.
eefriedman
Nov 8, 2015
Author
Contributor
HTML attributes are all lower-case; bgcolor is correct.
(I tracked down the reason for the test failure; it actually isn't a mistake in htmlbodyelement.rs.)
|
@nox Updated with a fix for document.rs ; please double-check that the change makes sense. |
|
|
|
-S-awaiting-review +S-needs-code-changes +S-needs-rebase Reviewed 1 of 2 files at r1, 1 of 1 files at r2, 4 of 4 files at r3, 2 of 2 files at r4, 3 of 3 files at r5, 1 of 1 files at r6, 2 of 2 files at r7. components/script/dom/htmlbodyelement.rs, line 100 [r3] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo r=nox |
|
|
Misc cleanup for DOM attributes No functional change; just cleanups related to parsing attributes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8404) <!-- Reviewable:end -->
|
|
|
@bors-servo retry #8416 |
|
|
|
|
eefriedman commentedNov 8, 2015
No functional change; just cleanups related to parsing attributes.