Announcement

Collapse
No announcement yet.

Illegal duplicate IDs in quicksearch

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Illegal duplicate IDs in quicksearch

    Hi,

    SC grid application is generating illegal HTML in the quicksearch bar. 2 input elements have the same ID. The HTML spec says duplicate IDs are not allowed: http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

    You cannot use getElementById reliably in this case.

    Notice one has a display:none; in the style attribute and the tags have different name attributes.

    <span id="quicksearchph_top">

    <input type="text" id="SC_fast_search_top" class="css_toolbar_obj" style="vertical-align: middle; height: 16px; padding-right: 23px; display: none;" name="nmgp_arg_fast_search" value="" size="10" onchange="change_fast_top = 'CH';" alt="{watermark:'Quick search', watermarkClass:'css_toolbar_objWm', maxLength: 255}" maxlength="255">

    <input type="text" id="SC_fast_search_top" class="css_toolbar_obj css_toolbar_objWm" style="vertical-align: middle; height: 16px; padding-right: 23px; display: inline-block;" name="sc_clone_nmgp_arg_fast_search" value="" size="10" onchange="change_fast_top = 'CH';" alt="{watermark:'Quick search', watermarkClass:'css_toolbar_objWm', maxLength: 255}" maxlength="255">

    FYI: I'm trying to reload the last quicksearch and repeat it. That way the grid looks like it did the last time the user saw it. There are many applications between the grid and when the user returns to it.

    Thanks - Jim
    Last edited by jim.mackin@leanintree.com; 04-08-2014, 04:25 PM.

  • #2
    Hello,

    Issue reported to our bugs team.

    regards,
    Bernhard Bernsmann

    Comment

    Working...
    X