Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Issue #157: DOM hierarchy error with XHTML and SVG #160

Merged
merged 3 commits into from Dec 30, 2015
Merged

Issue #157: DOM hierarchy error with XHTML and SVG #160

merged 3 commits into from Dec 30, 2015

Conversation

DLehenbauer
Copy link
Contributor

dump_test_results() would throw a DOM hierarchy error for xhtml/svg documents if the '.lastChild' happened to be one that can not accept the 'results_element'.

A couple of additional opportunistic tweaks:

  • Fixed accidental use of the global 'data'.
  • Separated /* global */ declarations so VS Code can understand them.

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/5939

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@DLehenbauer
Copy link
Contributor Author

Ping? This change sounded uncontroversial in the discussion for Issue #157.

@@ -389,13 +389,20 @@ function dump_test_results(tests, status) {
var test_results = tests.map(function(x) {
return {name:x.name, status:x.status, message:x.message, stack:x.stack}
});
data = {test:window.location.href,
var data = {test:window.location.href,
tests:test_results,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reindent the rest of the object.

Also, I would appreciate it if you rebased your PR, redistributing the changes into two commits: one to fix the global variables/whitespace, and one for the actual changes to fix #157.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Done, thx.)

@Ms2ger
Copy link
Contributor

Ms2ger commented Dec 30, 2015

Thanks!

Ms2ger added a commit that referenced this pull request Dec 30, 2015
…y-error

Issue #157: DOM hierarchy error with XHTML and SVG; r=Ms2ger
@Ms2ger Ms2ger merged commit 154ec10 into w3c:master Dec 30, 2015
@DLehenbauer DLehenbauer deleted the fix-xhtml-svg-dom-hierarchy-error branch January 22, 2016 21:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants