mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #13311 - cynicaldevil:linkelement, r=Ms2ger
Correctly gets and sets rel content attributes in linkelement <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12799 . <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13311) <!-- Reviewable:end -->
This commit is contained in:
commit
f243d981ee
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