mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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");
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[stylesheet.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
|
@ -1,3 +0,0 @@
|
|||
[link-style-error-01.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
Loading…
Add table
Add a link
Reference in a new issue