Skip to main content

Questions tagged [conditional-comments]

Conditional Comments are a feature of Microsoft's Internet Explorer web browser. They allow a web page to check the browser version.

conditional-comments
0 votes
1 answer
159 views

Exclude part for all IE-versions in typo3

I would like to temporary exclude all version of the Internet Explorer (IE) from a specific part in my typo3 html file. I tried to comment it out this way: <!--[if !IE]> --> <p>Some ...
cd-media's user avatar
1 vote
0 answers
121 views

Outlook ignores conditional comments when forwarding email

I have optimized an email for Outlook. A content with max-width gets hidden, while the another one (with a set width="" in <td>) shows up. That is working fine so far. When this email gets ...
Ksenial's user avatar
  • 11
0 votes
1 answer
206 views

Why css class is not overridden for IE9?

I have piece of HTML code in which we are applying special css for IE9, IE10 & IE11. <!doctype html> <!--[if IE 9]><html data-placeholder-focus="false" lang="{%=...
Jayesh Dhandha's user avatar
4 votes
0 answers
1k views

Parsing HTML Email content inside of conditional comments (trying to avoid regex!)

I know how terribly wrong it is to (attempt to) parse HTML with Regex, which is why I'm trying really, really hard to avoid it. I have an app that generates HTML emails. We're using a big fancy ...
Adam Tuttle's user avatar
  • 19.7k
0 votes
1 answer
199 views

BeautifulSoup4 extract all types of conditional comments

What i try to do: Remove suspicious comments from html mails with bs4. Now i encountered a problem with so called conditional comments of type downlevel-revealed. See: https://learn.microsoft.com/en-...
tzanke's user avatar
  • 338
0 votes
1 answer
1k views

Why is Outlook conditional content showing in Apple mail?

I'm wrestling with an HTML email design destined primarily for Outlook/Office 365. Following advice on various sites I'm wrapping my content table in conditional comments in order to give it a fixed ...
RickL's user avatar
  • 554
0 votes
1 answer
320 views

Do Handlebars work with Microsoft Conditional comments?

We use conditional comments for our html email templates, as well as handlebars. I'm just wondering if handlebars can be used inside conditional comments like so: <div> ...
user7711695's user avatar
11 votes
2 answers
8k views

Vue html comment handling

I'm using Vue to produce some html template, I need to include the html conditional comments as per code below. var productTemplate = new Vue({ el: '#myApp' }); <script src="https://...
Adriano's user avatar
  • 3,906
1 vote
0 answers
896 views

IE11 does not react to conditional comments [duplicate]

I am using asynchronous javascript functions on my website, which are not supported by Internet Explorer 11 or lower. Therefore, I want to show a warning to IE users. To achieve this, I used the ...
Gasp0de's user avatar
  • 1,349
0 votes
0 answers
803 views

Extracting <script> from HTML with BeautifulSoup

I'm searching through an html file with BeautifulSoup's find_all function. I'm having a couple problems with this. First, since I want to find only the <script> tags, I have to use soup.find_all(...
plshelp's user avatar
  • 45
1 vote
1 answer
87 views

What is the purpose of the extra <!--> in some IE conditional comments?

In the latest version of WordPress, there is a section of the page with the following code: <!--[if lte IE 8]> <script type="text/javascript"> document.body.className = document.body....
John Doe's user avatar
  • 212
1 vote
0 answers
563 views

mysqldump creates conditional comments that lead to errors when restoring

the mySQL Dumps created with mysqldump contain conditional comments like this: /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE ...
Jochen Kunze's user avatar
0 votes
1 answer
60 views

What is the intent of this IE-conditional hack?

Can you tell me what is supposed to happen for IE browsers? <!DOCTYPE html><!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--><!--[if gt IE 8]>&...
Bhoboco's user avatar
  • 13
0 votes
0 answers
62 views

Add Class on commented code or conditional code

Is possible manage conditional code by jQuery or javascript <!--[if IE]> <div class="ie">IE ALERT</div> <![endif]--> $('.ie').addClass('ie-additional-class'); The jsfiddle ...
ShibinRagh's user avatar
  • 6,626
1 vote
1 answer
28 views

Why does IE9 on emulation mode render conditional comments?

I am testing css with conditional comments on internet explorer 9 using emulation mode, however it seems to render the css on screen as text. why is this happening? <!--[if IE]> .path2 { ...
Sai's user avatar
  • 841

15 30 50 per page
1
2 3 4 5
17