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 #502: hard error in details.polyfill.js #521

Merged
merged 5 commits into from
Jul 13, 2017
Merged

Fix #502: hard error in details.polyfill.js #521

merged 5 commits into from
Jul 13, 2017

Conversation

alex-ju
Copy link
Contributor

@alex-ju alex-ju commented Jul 12, 2017

What problem does the pull request solve?

The details.polyfill.js script expected <details> to contain a <summary> and a <div> representing the content. If this structure didn't exists the script crashes with a hard error as shown in #502.

As the <details> component can be potentially used in other scenarios across the page, if the structure is not followed, the polyfill script will not be executed.

How has this been tested?

Tested locally: Latest Safari, Firefox and Chrome on Mac
Tester with BrowserStack: IE11 and Edge15 on Windows.

What type of change is it?

  • Bug fix (non-breaking change which fixes an issue)

Has the documentation been updated?

  • I have read the CONTRIBUTING document.

alex-ju added 3 commits July 12, 2017 13:12
The polyfill script expected <details> to contain a <summary> and a <div> representing the content. If the structure doesn't exists the script will not continue, as the <details> component can be potentially used in other scenarios across the page.
@36degrees
Copy link
Contributor

@alex-ju can you squash those commits together please? Give me a shout if you want a hand.

alex-ju added 2 commits July 13, 2017 09:40
The polyfill script expected <details> to contain a <summary> and a <div> representing the content. If the structure doesn't exists the script will not continue, as the <details> component can be potentially used in other scenarios across the page.
@alex-ju alex-ju merged commit 7ebabe7 into alphagov:master Jul 13, 2017
@alex-ju
Copy link
Contributor Author

alex-ju commented Jul 13, 2017

Squashed & merged.

@alex-ju alex-ju changed the title Fix 502: Hard error in details.polyfill.js Fix #502: Hard error in details.polyfill.js Jul 13, 2017
@alex-ju alex-ju changed the title Fix #502: Hard error in details.polyfill.js Fix #502: hard error in details.polyfill.js Jul 13, 2017
This was referenced Jul 13, 2017
gemmaleigh added a commit to alphagov/govuk-prototype-kit that referenced this pull request Jul 28, 2017
gemmaleigh added a commit to alphagov/govuk-prototype-kit that referenced this pull request Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants