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:
Jesse McNelis 2025-05-26 21:48:43 +10:00
parent 41ecfb53a1
commit d6b24682ab
3 changed files with 5 additions and 5 deletions

View file

@ -183,8 +183,8 @@ impl HTMLLinkElement {
&self.owner_window(), &self.owner_window(),
Some(self.upcast::<Element>()), Some(self.upcast::<Element>()),
"text/css".into(), "text/css".into(),
None, // todo handle location get_attr(self.upcast(), &local_name!("href")).map(DOMString::from_string),
None, // todo handle title get_attr(self.upcast(), &local_name!("title")).map(DOMString::from_string),
sheet, sheet,
false, // is_constructed false, // is_constructed
can_gc, can_gc,

View file

@ -167,8 +167,8 @@ impl HTMLStyleElement {
&self.owner_window(), &self.owner_window(),
Some(self.upcast::<Element>()), Some(self.upcast::<Element>()),
"text/css".into(), "text/css".into(),
None, // todo handle location None,
None, // todo handle title None,
sheet, sheet,
false, // is_constructed false, // is_constructed
CanGc::note(), CanGc::note(),

View file

@ -1,3 +1,3 @@
[stylesheet-not-removed-until-next-stylesheet-loads.html] [stylesheet-not-removed-until-next-stylesheet-loads.html]
[Check that a style sheet loaded by a <link> is available until its successor is loaded] [Check that a style sheet loaded by a <link> is available until its successor is loaded]
expected: FAIL expected: PASS