use .set_tokenlist_attribute to set rel content attribute in SetRel

Removed .ini files expecting crashes
This commit is contained in:
Nikhil Shagrithaya 2016-09-19 02:06:08 +05:30
parent 06f7a642cf
commit 9d378ceb74
3 changed files with 3 additions and 7 deletions

View file

@ -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");

View file

@ -1,3 +0,0 @@
[stylesheet.html]
type: testharness
expected: CRASH

View file

@ -1,3 +0,0 @@
[link-style-error-01.html]
type: testharness
expected: CRASH