Recent Topics

[3.2 beta] xhtml vs. styles

started by on Jun 17, 2009 – Last touched: Jun 17, 2009

Jun 17, 2009 19:20    

I get this when revising text originally created and styled with the GUI editor:

Code

* Tag <h3> may not have attribute style="..."
    * Tag <p> may not have attribute style="..."
    * Tag <h3> may not have attribute style="..."
    * Tag <p> may not have attribute style="..."
    * Tag <span> may not have attribute style="..."
    * Tag <span> may not have attribute style="..."
    * Tag <h3> may not have attribute style="..."
    * Tag <p> may not have attribute style="..."
    * Invalid content.

If I switch to HTML mode and cut out the style="" attributes, then it will be accepted.

Jun 22, 2009 20:46

similar on adding images:

Code

* Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Tag <div> is not allowed within tag <p>
    * Invalid content.

here, cutting out all the div tags at least allows it to be accepted.

Jun 23, 2009 00:49

Hi bill_mcgonigle!

On your Users tab click the name of the group you are in. Then select the radio button for "basic ..." on the XHTML validation section. That should let you add divs and so forth.

Jun 23, 2009 01:22

EdB wrote:

On your Users tab click the name of the group you are in. Then select the radio button for "basic ..." on the XHTML validation section. That should let you add divs and so forth.

Ah, nice, thanks.

Just to be clear, it's the TinyMCE editor that's adding these style tags. I'd guess most folks would setup a group with the defaults and use TinyMCE.

It looks like it's possible to make TinyMCE emit valid code:
http://www.newmediacampaigns.com/page/how-to-produce-xhtml-10-strict-markup-with-tinymce

Ugly and painful, but possible.


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.