XHTML Strict in drupal

Events happening in the community are now at Drupal community events on www.drupal.org.
ernestd's picture

The first idea for this project was using iframe element (Iframe element) to build the editor instead of using textareas. Despite of it would have been more difficult to write the cross browser functions, it gave us the chance to use design mode and in the future to extend the possible content inside the iframe to use as rich text editor handling the DOM structure that would be inside

However, the use of HTML Strict in Drupal didn't let me to try this, at least this way. As of the version 1.6 of the module I've changed the point of view, functions, tests and drafts to use textareas and plain text. Not too bad

More information: XHTML Transitional, Strict - What’s the Difference?

Comments

Next release

ernestd's picture

Hi guys, thank you for your patience those who are subscribed and will see this comment ;)
Just to let you know that the next version will be released soon. It has taken a while because it might be a little big change since i realised I was wrong with the conclusion I said in the post I'm commenting right now

In the beginning of the project I had serious problems trying to implement the iframe element in IE6
Actually the problem was the iframe didn't show up. Everbody knows that drupal uses the Strict DTD declaration for XHTML, and I didn't find any other reason that made it fail. But, after a while i saw it didn't make sense and I've been these days testing different use cases to find what happened
The funny thing is it wasn't neither due to how the iframe was targeted via JS.
Nor it was a matter of the unsolved question whether the iframe is deprecated or it's loose or whatever it is (note the first link says it is deprecated according to the strict dtd definition, whereas in the second link there's a table which says it's loose instead of deprecated. There's no discussion anywhere with a clear answer about this subject)
Nor it was because I inserted content in the iframe in someway or not

Finally, after so many tests i've reached a not very sound conclusion, that is:
when ie6 is switched to strict mode, and the iframe is inside of a table and its height is specified in percentage (i.e. 100%) then the iframe is not shown up.
That means it doesn't happen if:
- the iframe is not inside the table
- the height is specified in pixels or even not specified (!)
- there is no strict mode activated
- obviusly, you use any other browser than IE6

In spite of everything don't ask me the reason for it

SoC 2006: Collaborative Editor

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: