Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Not familiar with this syntax
M Burke
Ranch Hand
Posts: 434
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In a
JSP
I am working on, I see this...
<!--[if IE]>
<![endif]-->
What language is this? Also, IE 10 does not recognize it.
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you look closely at the syntax, you'll see that's just an HTML comment. All browsers but IE just ignore it as a comment.
IE parses the comment and treats it as a conditional. It's completely non-standard.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Another variant you might come across (this comes from
HTML5 Boilerplate
):
<!--[if lt IE 7]> <p class="chrome frame"> You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> <![endif]-->
Again notice how it's just a comment that will be ignored non-IE browsers.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
M Burke
Ranch Hand
Posts: 434
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I see, thank you. I will change it to JSTL's c:if
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why? If it works, why upset the apple cart?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Pavel Sok
Greenhorn
Posts: 10
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Such HTML statement is used in creating forks during the parsing web page by browsers. So use this instead of propagating unnecessary JSTL's tags.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Performance Recommendation for Simple XML Parsing
error for 'Back' navigation..IE
Display first 5 nodes of result tree?
HTML Tags in XML file
td in netscape
More...