Auto merge of #11182 - mrmiywj:add-attribute-mutated, r=KiChjang

htmlanchorelement getter work before href setting is called

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 #10876  (github issue number if applicable).

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11182)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-17 22:05:57 -07:00
commit aa8c835d3b
6 changed files with 150 additions and 130 deletions

View file

@ -71,7 +71,6 @@ impl HTMLAnchorElement {
fn reinitialize_url(&self) {
// Step 1.
match *self.url.borrow() {
None => return,
Some(ref url) if url.scheme() == "blob" && url.cannot_be_a_base() => return,
_ => (),
}