I was found at this code by accident.
//<![CDATA[
jQuery(function() {
jQuery('#gnb li a').each(function() {
if (jQuery(this).attr('href') === window.location.pathname) {
jQuery(this).addClass('on');
}
if ("/seoul/timeline/" === window.location.pathname) {
jQuery('#home_item').addClass('on');
}
});
});
//]]>
At that time, I'm didn't known for the CDATA section.
As I searching it is it intended to pass a literally tag(ex.<script>.....</script>
), so it prevents an error in the browser.
At the above code, I wasn't found an any tag.
Why do using a CDATA section?