Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix getElementsByTagName() #14047

Merged
merged 1 commit into from Nov 4, 2016
Merged

Conversation

@mskrzypkows
Copy link

mskrzypkows commented Nov 3, 2016

Improved implementation of getElementsByTagName() in Document, properly pass 3 cases of https://dom.spec.whatwg.org/#concept-getelementsbytagname


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #11596 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Nov 3, 2016

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/document.rs, components/script/dom/htmlcollection.rs, components/script/dom/webidls/Document.webidl, components/script/dom/element.rs
  • @KiChjang: components/script/dom/document.rs, components/script/dom/htmlcollection.rs, components/script/dom/webidls/Document.webidl, components/script/dom/element.rs
@mskrzypkows
Copy link
Author

mskrzypkows commented Nov 3, 2016

continuation of #12844

}
}
return HTMLCollection::create(window, root, box AllFilter);
}

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Nov 3, 2016

Member

Coincidentally, I opened #14033 yesterday. In my changes, I had another conditional branch here checking if qualified_name is lowercase, because if so, we wouldn't need to clone the Atom for a lowercase variant. It might have been overkill though.

This comment has been minimized.

Copy link
@mskrzypkows

mskrzypkows Nov 4, 2016

Author

OK, so should I add additional checking?

@bors-servo
Copy link
Contributor

bors-servo commented Nov 3, 2016

The latest upstream changes (presumably #14043) made this pull request unmergeable. Please resolve the merge conflicts.

@mskrzypkows mskrzypkows force-pushed the mskrzypkows:getElementsByTagName branch from c69d2ac to 73fc495 Nov 4, 2016
@mskrzypkows
Copy link
Author

mskrzypkows commented Nov 4, 2016

@nox r?

@nox nox removed the S-needs-rebase label Nov 4, 2016
@nox
Copy link
Member

nox commented Nov 4, 2016

@bors-servo r+

Thanks for keeping up with it!

@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

📌 Commit 73fc495 has been approved by nox

@highfive highfive assigned nox and unassigned Manishearth Nov 4, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

Testing commit 73fc495 with merge 5545151...

bors-servo added a commit that referenced this pull request Nov 4, 2016
fix getElementsByTagName()

<!-- Please describe your changes on the following line: -->
Improved implementation of getElementsByTagName() in Document, properly pass 3 cases of https://dom.spec.whatwg.org/#concept-getelementsbytagname

---
<!-- 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  #11596 (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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14047)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

💔 Test failed - linux-rel-wpt

@highfive
Copy link

highfive commented Nov 4, 2016

  ▶ Unexpected subtest result in /dom/nodes/Document-getElementsByTagName-xhtml.xhtml:
  └ PASS [expected FAIL] Element in non-HTML namespace, prefix, non-ascii characters in name
@nox
Copy link
Member

nox commented Nov 4, 2016

@mskrzypkows Almost here, just need to remove that failure expectation.

Maciej Skrzypkowski
@mskrzypkows mskrzypkows force-pushed the mskrzypkows:getElementsByTagName branch from 73fc495 to af5d109 Nov 4, 2016
@jdm
Copy link
Member

jdm commented Nov 4, 2016

@bors-servo: r=nox

@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

📌 Commit af5d109 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

Testing commit af5d109 with merge cfef68f...

bors-servo added a commit that referenced this pull request Nov 4, 2016
fix getElementsByTagName()

<!-- Please describe your changes on the following line: -->
Improved implementation of getElementsByTagName() in Document, properly pass 3 cases of https://dom.spec.whatwg.org/#concept-getelementsbytagname

---
<!-- 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  #11596 (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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14047)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 4, 2016

@bors-servo bors-servo merged commit af5d109 into servo:master Nov 4, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@mskrzypkows mskrzypkows deleted the mskrzypkows:getElementsByTagName branch Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

7 participants
You can’t perform that action at this time.