Ask a questionAsk a question
 

General DiscussionBug? Quotation marks are missing in attributes

  • Wednesday, September 23, 2009 12:12 PMPhilipp.Sumi Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi there

    I'm trying to write a simple plug-in that accesses the selected HTML markup. Have a look at these samples:

    1. <p>hello <span class="test">world</span>. </p>
    2. <p>hello <span style="color: red">world</span>.</p>


    When selecting the word "world" and starting my plug-in, the submitted content is the following:

    1. The quotation marks are missing. I'm getting <SPAN class=test>world<SPAN>
    2. The attribute is there, including quotation marks

    ...I don't know which attributes are affected (and why there is a distinction of cases in the first place!), but it sure is annoying, as I can't parse the submitted markup properly due to invalid content. I'd be most happy if I'd really get the selected markup (also without upper casing of the tags) - is that possible?

    Cheers,
    Philipp

    Confessions of a Code Addict: http://www.hardcodet.net