SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Validation errors

Open margarett opened this issue 12 years ago • 6 comments

I'm getting some validation errors in several parts of my test board.

  • Admin (main page) Line 599, Column 33: Element object is missing one or more of the following attributes: data, type. <object id="quick_search"> Line 600, Column 137: Element form not allowed as child of element object in this context. (Suppressing further errors from this subtree.) …ion=admin;area=search" method="post" accept-charset="UTF-8" class="floatright">

margarett avatar Oct 23 '14 09:10 margarett

I think you are not on the latest build, please update your build :) I did some changes with https://github.com/SimpleMachines/SMF2.1/pull/2425

XinYenFon avatar Oct 23 '14 09:10 XinYenFon

Ups, sorry :tongue:

Yet, there are still errors...

  • MessageIndex: Line 276, Column 57: Duplicate ID notify_dropdown. <div id="notify_dropdown" class="top_menu dropmenu">
  • Display: Line 380, Column 57: Duplicate ID notify_dropdown. <div id="notify_dropdown" class="top_menu dropmenu">

And in Admin, the same errors about quick search are still there...

margarett avatar Oct 23 '14 12:10 margarett

Yes I'm aware that, to open drop-menu we need JS, and that JS snip using ID part to do its job :) Oh can you please also remove the errors you are not getting anymore, so I can track them easily. thanks ^^

XinYenFon avatar Oct 23 '14 13:10 XinYenFon

Done ;)

margarett avatar Oct 23 '14 15:10 margarett

Couldn't we just use a CSS class for those instead of duplicating the ID?

Oldiesmann avatar Oct 24 '14 17:10 Oldiesmann

The object issue was fixed with #2454, and the rest of this has now been fixed with #2457. Further investigation into the issue revealed that the ID for the dropdowns wasn't even being used anywhere. The JS for updating the button text (when selecting an item from the notifications list) wasn't working either because it was referencing an element with an ID of "button_strip_notify" rather than one with that class...

Oldiesmann avatar Oct 25 '14 16:10 Oldiesmann