Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load trogedit iframe in standards mode for all browsers excluding

earlier versions of IE.

Tested:
Manually and unit test

R=ojan,nicksantos
DELTA=33  (22 added, 7 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4276


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1618 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
commit 61d67992849bbaf2ab394f42ccc348c3be6f0b75 1 parent 8b95489
mariakhomenko@google.com authored
View
3  closure/goog/editor/icontent.js
@@ -97,8 +97,7 @@ goog.editor.icontent.getInitialIframeContent_ =
function(info, bodyHtml, style) {
var html = [];
- if (info.blended_ && info.standards_ ||
- goog.editor.icontent.useStandardsModeIframes_) {
+ if (info.standards_ || goog.editor.icontent.useStandardsModeIframes_) {
html.push('<!DOCTYPE HTML>');
}
View
10 closure/goog/editor/icontent_test.html
@@ -123,7 +123,7 @@
'-moz-force-broken-image-icon') == -1); // quirks
}
-function testWhiteboxStandardsFixedRtl() {
+function testWhiteboxStandards() {
var info = new goog.editor.icontent.FieldFormatInfo('id', true, false, true);
var styleInfo = null;
var doc = realIframeDoc;
@@ -131,13 +131,7 @@
goog.editor.icontent.writeNormalInitialBlendedIframe(info, html,
styleInfo, realIframe);
assertBodyCorrect(doc.body, 'id', html, true);
-
- // TODO(nicksantos): on Safari, there's a bug where all written iframes
- // are CSS1Compat. It's fixed in the nightlies as of 3/31/08, so remove
- // this guard when the latest version of Safari is on the farm.
- if (!goog.userAgent.WEBKIT) {
- assertEquals('BackCompat', doc.compatMode); // always use quirks in whitebox
- }
+ assertEquals('CSS1Compat', doc.compatMode);
}
function testGetInitialIframeContent() {
Please sign in to comment.
Something went wrong with that request. Please try again.