Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Admin->define_pages_editor.php form structure invalid html

    I changed

    FROM
    <tr><?php echo zen_draw_form('language', FILENAME_DEFINE_PAGES_EDITOR, 'lngdir=' . $_SESSION['language'] . '&filename=' . $_GET['filename'] . '&action=save'); ?>
    <td><table border="0" cellspacing="0" cellpadding="2">
    <tr>
    TO
    <tr>
    <td><?php echo zen_draw_form('language', FILENAME_DEFINE_PAGES_EDITOR, 'lngdir=' . $_SESSION['language'] . '&filename=' . $_GET['filename'] . '&action=save');
    <table border="0" cellspacing="0" cellpadding="2">
    <tr>
    AND
    </table></td>
    </form></tr>
    TO


    </table></form></td>
    </tr>
    ...there are more but I thought I'd test the water first....
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin->define_pages_editor.php form structure invalid html

    What functionality is broken by this? Which specific browsers are affected?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Admin->define_pages_editor.php form structure invalid html

    Quote Originally Posted by DrByte View Post
    What functionality is broken by this? Which specific browsers are affected?
    Like torvista indicated, the Define Pages Editor is the tip of the iceberg on this issue; there are many other admin pages that use a similar, invalid HTML structure when defining their forms. I've not (yet) seen the invalid HTML affect a browser's rendition of the page, but that's not to say that over time browsers won't tighten the rules (in a manner similar to the more recent versions of PHP).

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Re: Admin->define_pages_editor.php form structure invalid html

    What functionality is broken by this? Which specific browsers are affected?
    None that I have seen, but since Zen Cart is 1.x is bug-free, there's not much left to correct except for these unimportant html errors. The catalog is 100% valid, unique among the carts that I've tried, why not the admin too, now it's gradually getting some attention.

    I am always interested in correcting them as if the vanilla page is 100% valid, its easier to spot when my mods introduce new errors.
    As it's such a low priority the community should be encouraged to find and fix them, to save dev time.
    And in the end if something is wrong, it should be corrected whether it causes a problem or not.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin->define_pages_editor.php form structure invalid html

    It's a massive change to incorporate into 1.5.2, so it won't be.

    Many improvements are going into 1.6.0 though.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,835
    Plugin Contributions
    31

    Default Re: Admin->define_pages_editor.php form structure invalid html

    So, is there any point reporting these errors?

    I would have said yes as they are things anyone can fix but can be time-consuming to clear (in the case of table errors) so better the community does them.
    They could be all in one thread for trivial code-compliance/non-breaking functionality rather than cluttering up the forum with threads per minor error.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin->define_pages_editor.php form structure invalid html

    Quote Originally Posted by torvista View Post
    So, is there any point reporting these errors?
    Sure. One post saying that there is (technically) an HTML structural error in various admin pages is fine.
    Since the same constructed element is used consistently throughout, a single report is sufficient.

    If I recall correctly there was a very specific reason why the HTML was ordered that way, because certain browsers were rejecting the "correct" way and actually breaking. But that was many years ago, and I've forgotten which one, and to be fair the problem may no longer exist with reasonably modern browsers.

    As a team we'd rather not touch any of those nested-tables at all, unless it's to rip them out and replace the entire page with modern markup. This may explain some of the reluctance I'm expressing here with respect to this type of report.
    But the problem with massively ripping out and replacing code is that it breaks plugins, and then the masses of people complain that their plugins are all broken or have to be rewritten. So, we have to be selective about "when" we inflict that pain, while still attempting to maintain forward motion so that things aren't terribly outdated.
    But now I'm waxing philosophical. Sorry.

    I do appreciate your careful eye and your reports of your findings. Please don't take my feedback as negative. I have to be mindful of the 200,000 live shops that are affected by changes :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 28 Jul 2011, 07:43 PM
  2. Error in define_pages_editor.php
    By HaDAk in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 4 Jul 2007, 08:47 PM
  3. Replies: 3
    Last Post: 19 Sep 2006, 05:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg