Ticket #960 (closed Task: fixed)

Opened 3 years ago

Last modified 12 months ago

Change default doctype in the config so it triggers standards mode

Reported by: alfonsoml Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Cc:

Description

I think that it would be better if by default the content in the editor is rendered using standards mode by setting in the fckconfig.js

FCKConfig.DocType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">' ;

and removing the td selectors in fck_editorarea.css

Of course anyone can do these changes in their setup, but I think that setting this ones as defaults might help to uncover some problems related to standards rendering and in the end the behavior of the browsers is much more compatible by using standards mode instead of quirks.

And if anyone uses just the online demo it can get standards rendering instead of quirks.

Change History

Changed 2 years ago by Scott

Changed 18 months ago by arczi

  • status changed from new to closed
  • resolution set to duplicate

DUP of #1659

Changed 18 months ago by fredck

  • status changed from closed to reopened
  • resolution duplicate deleted

This is not a DUP of #1659. It is only related to it.

Changed 18 months ago by fredck

  • keywords Pending added

Shouldn't we use the XHTML 1.0 Transitional doctype instead? That's the way we are doing now in the CKEditor prototype.

Changed 18 months ago by alfonsoml

I don't mind if it is HTML or XHTML as long as by default a doctype that triggers standards mode is used and so it gets the maximum testing and we can forget about the differences in quirks mode.

Changed 18 months ago by fredck

  • keywords Confirmed added; Pending removed
  • milestone set to CKEditor 3.0

Changed 12 months ago by fredck

  • status changed from reopened to closed
  • resolution set to fixed

That's the way we have it for V3 now.

Note: See TracTickets for help on using tickets.