<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SIM payment form - IE 7,8 quirks mode - css selectors work around in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-payment-form-IE-7-8-quirks-mode-css-selectors-work-around/m-p/14168#M8368</link>
    <description>&lt;P&gt;Some nice folks at webmasterworld helped me find a workaround&amp;nbsp;&lt;A target="_self" href="http://www.webmasterworld.com/css/4334732.htm"&gt;here.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2011 16:30:37 GMT</pubDate>
    <dc:creator>hypermega</dc:creator>
    <dc:date>2011-07-05T16:30:37Z</dc:date>
    <item>
      <title>SIM payment form - IE 7,8 quirks mode - css selectors work around</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-payment-form-IE-7-8-quirks-mode-css-selectors-work-around/m-p/14154#M8363</link>
      <description>&lt;P&gt;&lt;FONT face="verdana" size="2" color="#000000"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to apply styles to specific elements of a hosted payment processing form. This form is not under my control, so I cannot edit the html itself (specifically the &lt;STRONG&gt;doctype&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;I link to an external stylesheet to customize the presentation using custom html embedded in the header section.&lt;BR /&gt;&lt;BR /&gt;However, I minimized this page to only what is neccessary to demonsrate my problem, so the css is embedded.&lt;BR /&gt;&lt;BR /&gt;The follow sample will trigger "&lt;STRONG&gt;quirks mode&lt;/STRONG&gt;" in &lt;STRONG&gt;IE 7&lt;/STRONG&gt; and &lt;STRONG&gt;8&lt;/STRONG&gt; because of the doctype. The css selectors are supported in IE, as changing the doctype to one that does not trigger quirks mode &lt;FONT face="verdana" size="2" color="#000000"&gt;will make it work magically.&amp;nbsp; For example:&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;﻿&amp;lt;!DOCTYPE HTML&amp;gt; &lt;/PRE&gt;&lt;P&gt;&lt;FONT face="verdana" size="2" color="#000000"&gt;However, I cannot change the doctype as I don't have control over it.&lt;BR /&gt;&lt;BR /&gt;I am trying to apply style to the "last name" field so that it appears as the same color as the "first name" field. Note the "last name" field does not have a class attribute defined as the "first name" field does.&lt;BR /&gt;&lt;BR /&gt;This code works fine in recent firefox versions I tested with. How can I workaround quirks mode and apply consistent style to these elements using only css?&lt;BR /&gt;&lt;BR /&gt;Also, javascript is not an option, as script tags are replaced with noscript.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;HTML&amp;gt;
&amp;lt;HEAD&amp;gt;
&amp;lt;title&amp;gt;Quirks Test&amp;lt;/title&amp;gt;
&amp;lt;style&amp;gt;
.LabelColBill {
color: blue;
}

/* label embedded in table w/o css id or class to select */
.DataColBill td[align=right] {
color: blue;
}
&amp;lt;/style&amp;gt;
&amp;lt;/HEAD&amp;gt;
&amp;lt;BODY&amp;gt;
&amp;lt;div id="divPageOuter" class="PageOuter"&amp;gt;
&amp;lt;div id="divPage" class="Page"&amp;gt;
&amp;lt;form id="formPayment"&amp;gt;
&amp;lt;div id="divBillingInformation"&amp;gt;

&amp;lt;TABLE id="tableCustomerBillingInformation"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td class="LabelColBill"&amp;gt;First Name: &amp;lt;/td&amp;gt;
&amp;lt;td class="DataColBill"&amp;gt;
&amp;lt;table cellpadding="0" cellspacing="0" width="100%"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;&amp;lt;!--x_first_name.val--&amp;gt;Foo&amp;lt;!--end--&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;td align="right"&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;Last Name: &amp;amp;nbsp;&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;&amp;lt;!--x_last_name.val--&amp;gt;Bar&amp;lt;!--end--&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/TABLE&amp;gt; &amp;lt;!-- tableCustomerBilling --&amp;gt;

&amp;lt;/div&amp;gt; &amp;lt;!-- divBillingInformation --&amp;gt;
&amp;lt;/div&amp;gt; &amp;lt;!-- entire BODY --&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/BODY&amp;gt;
&amp;lt;/HTML&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana" size="2" color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2011 10:33:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-payment-form-IE-7-8-quirks-mode-css-selectors-work-around/m-p/14154#M8363</guid>
      <dc:creator>hypermega</dc:creator>
      <dc:date>2011-07-04T10:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: SIM payment form - IE 7,8 quirks mode - css selectors work around</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-payment-form-IE-7-8-quirks-mode-css-selectors-work-around/m-p/14168#M8368</link>
      <description>&lt;P&gt;Some nice folks at webmasterworld helped me find a workaround&amp;nbsp;&lt;A target="_self" href="http://www.webmasterworld.com/css/4334732.htm"&gt;here.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2011 16:30:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-payment-form-IE-7-8-quirks-mode-css-selectors-work-around/m-p/14168#M8368</guid>
      <dc:creator>hypermega</dc:creator>
      <dc:date>2011-07-05T16:30:37Z</dc:date>
    </item>
  </channel>
</rss>

