Default Text Widget Creates Invalid HTML
|Reported by:||clwill||Owned by:|
The default text widget in default-widgets.php creates HTML that is invalid. Older browsers (specifically IE6) stop rendering when they hit the construct, disabling the entire rest of the sidebar.
The issue is that the widget includes a <div> inside a <li>, which renders fine (is ignored) in later browsers, but a) doesn't validate, and b) causes IE6 to puke, as noted above.
The specific error is line 382:
<div class="textwidget"><?php echo $instancefilter? ? wpautop($text) : $text; ?></div>
Two suggested possibilities: 1) Remove the div entirely or 2) if the class is deemed necessary, replace it with a <span class="textwidget"></span>