mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Get href and title of stylesheet when passing html link element
Signed-off-by: Jesse McNelis <jessta@jessta.id.au>
This commit is contained in:
parent
41ecfb53a1
commit
d6b24682ab
3 changed files with 5 additions and 5 deletions
|
@ -183,8 +183,8 @@ impl HTMLLinkElement {
|
|||
&self.owner_window(),
|
||||
Some(self.upcast::<Element>()),
|
||||
"text/css".into(),
|
||||
None, // todo handle location
|
||||
None, // todo handle title
|
||||
get_attr(self.upcast(), &local_name!("href")).map(DOMString::from_string),
|
||||
get_attr(self.upcast(), &local_name!("title")).map(DOMString::from_string),
|
||||
sheet,
|
||||
false, // is_constructed
|
||||
can_gc,
|
||||
|
|
|
@ -167,8 +167,8 @@ impl HTMLStyleElement {
|
|||
&self.owner_window(),
|
||||
Some(self.upcast::<Element>()),
|
||||
"text/css".into(),
|
||||
None, // todo handle location
|
||||
None, // todo handle title
|
||||
None,
|
||||
None,
|
||||
sheet,
|
||||
false, // is_constructed
|
||||
CanGc::note(),
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[stylesheet-not-removed-until-next-stylesheet-loads.html]
|
||||
[Check that a style sheet loaded by a <link> is available until its successor is loaded]
|
||||
expected: FAIL
|
||||
expected: PASS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue