Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix XHTML validation issue

Props [NoMad1337](http://www.tacticalcode.de/).
  • Loading branch information...
commit 0a3416e74b63b36839a19c43d87d95d0f23189e9 1 parent 7b1c5a7
@Viper007Bond authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 readme.txt
  2. +1 −1  syntaxhighlighter.php
View
4 readme.txt
@@ -55,6 +55,10 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
== ChangeLog ==
+= Version 3.1.7 =
+
+* XHTML validation fix by adding `type` attribute to `<style>` tag. Props [NoMad1337](http://www.tacticalcode.de/).
+
= Version 3.1.6 =
* Kill off v2 copy-to-clipboard SWF file due to XSS security issue with the file. If you want to be able to copy/paste, use the better v3.
View
2  syntaxhighlighter.php
@@ -561,7 +561,7 @@ function js_escape_singlequotes( $string ) {
// Output an anchor in the header for the Javascript to use.
// In the <head>, we don't know if we'll need this plugin's CSS and JavaScript yet but we will in the footer.
function output_header_placeholder() {
- echo '<style id="syntaxhighlighteranchor"></style>' . "\n";
+ echo '<style type="text/css" id="syntaxhighlighteranchor"></style>' . "\n";
}
Please sign in to comment.
Something went wrong with that request. Please try again.