[wp-trac] [WordPress Trac] #28151: IE <html> tag uses wrong conditional logic
WordPress Trac
noreply at wordpress.org
Tue May 6 16:42:19 UTC 2014
#28151: IE <html> tag uses wrong conditional logic
---------------------------+-----------------------------
Reporter: mikemanger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.7
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Currently all bundled themes from twentyeleven use an OR operator ( | )
for the last <html> conditional statement:
{{{
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
}}}
This means that both IE 7 and 8 parse the default <html> tag but
apparently they just use the first one they are given (the last if
statement is redundant).
Ref: http://msdn.microsoft.com/en-gb/library/ms537512(v=vs.85).aspx#syntax
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28151>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list