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

feat: add amp-boilerplate as boolean attribute (resolves: #530) #531

Merged
merged 1 commit into from
Mar 21, 2020

Conversation

jangarcia
Copy link
Contributor

@jangarcia jangarcia commented Mar 20, 2020

According to the AMP specification, documents need to include a style tag with the boolean attribute amp-boilerplate in the <head> of the page. At the moment, adding amp-boilerplate: true to a style object in htmlAttrs outputs <style amp-boilerplate="true">, which leads to an AMP validation error. For this reason, amp-boilerplate should be added to the
booleanHtmlAttributes, as it has already been done for the attribute amp.

@codecov
Copy link

codecov bot commented Mar 20, 2020

Codecov Report

Merging #531 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #531   +/-   ##
=======================================
  Coverage   99.25%   99.25%           
=======================================
  Files          33       33           
  Lines         673      673           
  Branches      205      205           
=======================================
  Hits          668      668           
  Misses          3        3           
  Partials        2        2
Impacted Files Coverage Δ
src/shared/constants.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2488c1...9380b9a. Read the comment docs.

@pimlie pimlie merged commit bb45319 into nuxt:master Mar 21, 2020
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