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

Remove unnecessary data-language attribute from show-language #840

Merged
merged 1 commit into from
Dec 24, 2015

Conversation

nauzilus
Copy link
Contributor

It was only applicable when using CSS pseudo elements to show the language name, which is no longer the case.

People may have been targeting blocks by language using [data-language='C#'] for example, but it's more likely they'd have used .language-csharp, since data-language is only ever there because of a plugin.

…m the code.

It was only applicable when using CSS pseudo elements to show the language name, which is no longer the case.
@nauzilus nauzilus changed the title The data-language attribute is no longer of any use, so remove it Remove unnecessary data-language attribute from show-language Dec 17, 2015
LeaVerou added a commit that referenced this pull request Dec 24, 2015
Remove unnecessary data-language attribute from show-language
@LeaVerou LeaVerou merged commit 9ca0c9b into PrismJS:gh-pages Dec 24, 2015
@LeaVerou
Copy link
Member

Thanks!
Btw, is there any particular reason for using innerHTML instead of textContent?

@nauzilus
Copy link
Contributor Author

Nope, no reason, it was already there from earlier commit; I just rearranged the code and didn't notice it :( I shall fix later this evening.

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