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

Formatting removes xml-stylesheet processing instruction attributes #115

Closed
catfacetaro opened this issue Mar 18, 2019 · 0 comments · Fixed by eclipse/lemminx#331
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@catfacetaro
Copy link

When formatting document with the xml-stylesheet processing instruction,
it removes all attributes, except version and encoding.

Example:
<?xml-stylesheet href="my-style.css" type="text/css"?>
becomes
<?xml-stylesheet?>

However,
<?xml-stylesheet href="my-style.css" encoding="UTF-8" type="text/css"?>
becomes
<?xml-stylesheet encoding="UTF-8"?>

It seems like it treats the processing instruction xml-stylesheet like xml.
The xml-stylesheet does not have attributes encoding or version, but it has attribute href and type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants