Side navigation
#10048 closed bug (duplicate)
Opened August 14, 2011 03:37PM UTC
Closed August 14, 2011 08:27PM UTC
Last modified August 18, 2011 04:16PM UTC
Using find('*') on HTML5 tags includes closing tags in IE7 & 8
Reported by: | Motty | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using find('*') in IE7 & 8, almost all HTML5 closing tags are included (except for <ruby>)
This may be related to http://bugs.jquery.com/ticket/10047 but I opened a separate ticket just in case it isn't.
This appears to be happening in all jQuery versions.
This is because the tags are seen as invalid, notice what happens when Modernizr is included:
http://jsfiddle.net/L7d9g/5/
Any code that is expecting HTML5 tags to work should be including a shiv. This is really under the umbrella of the HTML5 ticket.