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

Bugfix/stylesheet collection #51

Merged

Conversation

cborgolte
Copy link
Contributor

This PR reintroduces the "collect stylesheets" feature with two bug fixes:

  • collected stylesheets got lost
  • additional attributes of the stylesheet's -tag were ignored

The previous implementation did ignore any additional attributes
provided with the link tag. E.g. media queries were cut off.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 93.911% when pulling 1f48119 on cborgolte:bugfix/stylesheet-collection into c825d99 on tarent:master.

@@ -377,7 +378,7 @@ forloop:
s := headBuff.String()

if len(s) > 0 {
*fragment = *NewStringFragment(s)
fragment.SetContent(s)
Copy link

Choose a reason for hiding this comment

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

it would be better to refactor the ugly method signature above, in the way, that no dangerous pointer stuff is needed!

@cborgolte cborgolte merged commit b0d2519 into qvest-digital:master May 31, 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.

3 participants