Skip to main content

Bug Tracker

Side navigation

#5661 closed bug (wontfix)

Opened December 15, 2009 03:18PM UTC

Closed July 11, 2011 08:54PM UTC

jQuery (or sizzle?) does not return children of HTML5 sections in IE7

Reported by: tonydewan Owned by: john
Priority: minor Milestone: 1.next
Component: selector Version: 1.3.2
Keywords: html5 section ie7 Cc:
Blocked by: Blocking:
Description

jQuery (or more probably Sizzle) does not accurately return children of HTML5 <section>'s in IE7, even when using a "shiv", such as the one included in modernizr. <section>'s themselves are returned, but children are not. See here:

http://www.dev.weareabq.com/bugs/section.html

This bug appears in IE7, both standalone and in IE8 in compatibility mode. Modernizr (or similar shiv) is NOT required to recreate the bug, though it IS required to get the expected result in IE8.

I have not tested IE6 at all, nor have I looked into the core to see why this is happening.

Attachments (1)
  • section.html (1.2 KB) - added by tonydewan December 15, 2009 03:19PM UTC.

    All necessary code to recreate bug

Change History (6)

Changed December 15, 2009 04:17PM UTC by tonydewan comment:1

I forgot to mention that using a different means of selecting sections that does not include the tag name (e.g., via a class or id for the section) actually returns correctly (assuming the shiv is in place.) I updated the linked page showing this.

Changed December 16, 2009 07:32PM UTC by paul.irish comment:2

This could be merged into #5545 i think

Changed December 18, 2009 01:09PM UTC by tonydewan comment:3

Most probably it could, yes. The only point that's new here is that the tag name is required to make it fail. However, #5515 references this: http://ejohn.org/blog/nodename-case-sensitivity/ which appears to be the root cause.

Changed November 14, 2010 04:30AM UTC by dmethvin comment:4

Changed March 31, 2011 04:29AM UTC by danheberden comment:5

milestone: 1.41.next

Changed July 11, 2011 08:54PM UTC by john comment:6

resolution: → wontfix
status: openclosed

You need to be using this particular technique in order to get it to work correctly:

http://ejohn.org/blog/html5-shiv/