Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPanic when using HTMLLinkElement.relList after setting HTMLLinkElement.rel #12799
Comments
|
The buggy code is // https://html.spec.whatwg.org/multipage/#dom-link-rel
make_setter!(SetRel, "rel");in // https://dom.spec.whatwg.org/#dom-element-classname
fn SetClassName(&self, class: DOMString) {
self.set_tokenlist_attribute(&atom!("class"), class);
} |
|
Please make a comment here if you intend to work on this issue. Thank you! |
|
@cynicaldevil The make_setter macro expands and defines the SetRel function that you linked. |
|
@KiChjang yeah I thought about that after I wrote that comment....anyway, how am I supposed to do this? I looked up |
|
@cynicaldevil HTMLLinkElement "inherits" from Element, so you can call |
|
See http://doc.servo.org/script/dom/index.html#inheritance for a better explanation. |
|
@cynicaldevil I'm going to assume that you're currently working on this. |
|
@cynicaldevil Any problems so far? Any blockers, questions? |
|
@KiChjang I'm sorry I completely forgot about this, I will take a look and get back to you if I have any questions in a day or two :) |
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 -->
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 -->
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 -->
yields