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 handling of boolean attributes in SSR (#1109) #1123

Merged
merged 1 commit into from
Jan 20, 2018
Merged

Conversation

Conduitry
Copy link
Member

There was an extra layer to this that I wasn't thinking of because I somehow forgot that we need to output code that outputs HTML, not just directly output HTML 😅

What I settled on was: If this is a known boolean attribute, and its value is exactly one non-Text chunk, then emit code that displays or doesn't display the bare attribute name as appropriate. Other situations are handled as before.

@Conduitry
Copy link
Member Author

I ... have no idea what that build failure is about. It doesn't look like it's necessarily just Travis having a glitch.

@codecov-io
Copy link

Codecov Report

Merging #1123 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1123      +/-   ##
==========================================
+ Coverage   91.47%   91.48%   +<.01%     
==========================================
  Files         125      125              
  Lines        4518     4522       +4     
  Branches     1457     1459       +2     
==========================================
+ Hits         4133     4137       +4     
  Misses        163      163              
  Partials      222      222
Impacted Files Coverage Δ
...nerators/server-side-rendering/visitors/Element.ts 86.48% <100%> (+1.63%) ⬆️

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 a4f6fed...57b737b. Read the comment docs.

@Conduitry
Copy link
Member Author

Well it looks like the rebuild worked 🤷‍♂️

@Rich-Harris Rich-Harris merged commit c35eb67 into master Jan 20, 2018
@Rich-Harris Rich-Harris deleted the gh-1109 branch January 20, 2018 17:05
@Rich-Harris
Copy link
Member

lol computers

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.

3 participants