mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
use .set_tokenlist_attribute to set rel content attribute in SetRel
Removed .ini files expecting crashes
This commit is contained in:
parent
06f7a642cf
commit
9d378ceb74
3 changed files with 3 additions and 7 deletions
|
@ -368,7 +368,9 @@ impl HTMLLinkElementMethods for HTMLLinkElement {
|
|||
make_getter!(Rel, "rel");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-link-rel
|
||||
make_setter!(SetRel, "rel");
|
||||
fn SetRel(&self, rel: DOMString) {
|
||||
self.upcast::<Element>().set_tokenlist_attribute(&atom!("rel"), rel);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-link-media
|
||||
make_getter!(Media, "media");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue