Permalink
Browse files

skip option/optgroup shiving (fixes Issue #57)

  • Loading branch information...
aFarkas committed Apr 5, 2012
1 parent bf566bd commit 269121f99683d640f2423a036c53cd8a61617503
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/html5shiv-printshiv.js
  2. +1 −1 src/html5shiv.js
@@ -5,7 +5,7 @@
var options = window.html5 || {};
/** Used to skip problem elements */
- var reSkip = /^<|^(?:button|form|map|select|textarea|object|iframe)$/i;
+ var reSkip = /^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i;
/** Not all elements can be cloned in IE (this list can be shortend) **/
var saveClones = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i;
View
@@ -5,7 +5,7 @@
var options = window.html5 || {};
/** Used to skip problem elements */
- var reSkip = /^<|^(?:button|form|map|select|textarea|object|iframe)$/i;
+ var reSkip = /^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i;
/** Not all elements can be cloned in IE (this list can be shortend) **/
var saveClones = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i;

0 comments on commit 269121f

Please sign in to comment.