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(rss): add missing type-attribute for xsl stylesheets #5600

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

fflaten
Copy link
Contributor

@fflaten fflaten commented Dec 13, 2022

Changes

Adds the type="text/xsl" attribute to xml-stylesheet processing instruction in rss. It was removed by mistake in #5550.

The type attribute will only be added when the stylesheet ends with .xsl to enable support for css-stylesheet as well.

Fix #5581

Testing

Updated the tests using chai-xml to verify both using a xsl stylesheet (include attribute) and a css stylesheet (no type-attribute).

Docs

Not sure if necessary. This is a bugfix for xsl-stylesheets, but technically allows use of css-stylesheets. Not sure if it should be recommended by including in docs.

/cc @withastro/maintainers-docs for feedback!

@changeset-bot
Copy link

changeset-bot bot commented Dec 13, 2022

🦋 Changeset detected

Latest commit: 2e7dd2c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@fflaten fflaten changed the title astro-rss: fix missing type-attribute for xsl stylesheets fix(rss): add missing type-attribute for xsl stylesheets Dec 13, 2022
@matthewp
Copy link
Contributor

Thank you!

@matthewp matthewp merged commit c4155da into withastro:main Dec 14, 2022
@astrobot-houston astrobot-houston mentioned this pull request Dec 14, 2022
@fflaten fflaten deleted the rss-stylesheet branch December 14, 2022 14:23
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.

[astro-rss] Stylesheets no longer work in 1.1.0
2 participants