#1464: Unable to create <p> inside <div> (the return)
-----------------------------+----------------------------------------------
Reporter: designstack | Owner:
Type: Bug | Status: reopened
Priority: Normal | Milestone:
Component: UI : Enter Key | Version: FCKeditor 2.5 Beta
Resolution: | Keywords: Confirmed
-----------------------------+----------------------------------------------
Comment(by severy):
Replying to [comment:6 fredck]:
> Another thing to consider is the definition of {{{<div>}}} in the HTML5.
A {{{<div>}}} as a container '''cannot''' contain text or inline elements.
It can only contain block elements. So, we are assuming that
{{{<div>abc</div>}}} is not a container, and the assumption is correct.
Frederico,
Since you mentioned a misunderstanding about your reference to HTML5, I've
been doing some research on this area to learn more about it. As best as
I can tell, HTML5 allows *either* text or inline elements inside a <div>,
but not both, but not just block elements. But it is also clear that
HTML4 explicitly allows both text *and* inline elements inside a <div>,
and I have worked with many web pages built that way that validate
perfectly in the W3C validator. And I don't think it's much of a stretch
to say that 99% of the web pages currently on the Internet that would be
edited in FCKeditor that use a DOCTYPE are set to one of the HTML4
variants. If you are dead set against a config flag to switch the div-
enter behavior, you could base it on the DOCTYPE. If the DOCTYPE is
HTML5, use the current behavior, as that conforms to the HTML5 standard.
But if the DOCTYPE is HTML4, you should allow behavior that is consistent
with that standard, in which inline elements inside divs are perfectly
acceptable. Users should not have to rewrite *existing* web pages to be
edited properly within FCKeditor when the pages are valid HTML4 pages, and
this bug would require that be done. That would cause major headaches
(and already is) with most of the users of the editor.
--
Ticket URL: <http://dev.fckeditor.net/ticket/1464#comment:8>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac