WordPress.org

Forums

WP-HTML-Compression
[resolved] value=”” in the forms & facebook comments (7 posts)

  1. jokermilll
    Member
    Posted 8 months ago #

    1) your plugin remove all value=”” in the code, but it is very important param and it make some forms not work.

    2) your plugin broke facebook comments widget.

    http://wordpress.org/extend/plugins/wp-html-compression/

  2. Steven Vachon
    Member
    Plugin Author

    Posted 8 months ago #

    <input type="text" name="test"/>

    ...is the same as:

    <input type="text" name="test" value=""/>

    ...with regards to GET/POST.

    And, which Facebook plugin?

  3. Slams
    Member
    Posted 1 month ago #

    <input type="text" value="<a href='<?php echo get_permalink(); ?>'><?php echo get_the_title();?></a>" onclick="javascript:this.select()" readonly style="width: 100%;" />

    In this way I've got a broken output:
    <input type="text" value="<a href=" .="" "="">

    Thank you for help!

  4. Steven Vachon
    Member
    Plugin Author

    Posted 1 month ago #

    Please supply the output HTML without WP-HTML-Compression for comparison.

  5. Slams
    Member
    Posted 1 month ago #

    <input type="text" value="<a href='http://delo-vcusa.ru/recepti/desertyi/shokoladny-e-bliny-s-tvorogom-sladkie-rolly-iz-blinchikov-s-persikami/'>Шоколадные блины с творогом. Сладкие роллы из блинчиков с персиками</a>" onclick="javascript:this.select()" readonly="" style="width: 100%;">

    Hmm, probably issue in & g t; and & l t; but I don't know why < and > have been interpreted such way.

  6. Steven Vachon
    Member
    Plugin Author

    Posted 1 month ago #

    A browser will not render that correctly. You should consider using a <textarea>.

    This is the output I get:

    <input type="text" value="<a href="//delo-vcusa.ru/recepti/desertyi/shokoladny-e-bliny-s-tvorogom-sladkie-rolly-iz-blinchikov-s-persikami/">Шоколадные блины с творогом. Сладкие роллы из блинчиков с персиками</a>" onclick="javascript:this.select()" style="width: 100%;">

    Looks fine, however the URL shortener has shortened the href attribute value, which is probably not ideal from a data perspective. I'll look into this when I have some free time.

  7. Slams
    Member
    Posted 1 month ago #

    Thank you for your time. I'll try to use textarea

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.