×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Mismatching/incorrect use of ID and NAME in templates and core

Mismatching/incorrect use of ID and NAME in templates and core 15 years 3 months ago #6165

  • JonusC
  • JonusC's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Since the development site is down I decided to make this bug a public posting so I remember it and so others see that it's due to be fixed by myself :P

As per CSS2 standard, the "id" attribute replaced "name" and name is only needed for backwards compatibility. There are some parts of the template and core inline-replacement code for template elements that don't have identical name/id attributes, these need to be fixed to be identical.

Also some (at least one) elements, specifically the tnotify select box, uses "name" but not "id". I therefore can't use JavaScript to check the select box unless I use "document.getElementByName" which is inconsistent with everything else (getElementById) and that's not good. Anyway I need this to be right because the new templates check and style-modify all the fields via JavaScript on Comment Submit for validation and eye-candy goodness.


Nobody has much reason to read this or reply, it's purely for informative purposes and a 'self-reminder'. :lol:

EDIT: document.getElementByName("tnotify") doesn't work at all for updating the styling (in my example, making the border red if incorrect value)

Mismatching/incorrect use of ID and NAME in templates and core 15 years 3 months ago #6178

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
added to the bug tracker:
dev.compojoom.com/issues/show/61

We had a syn flood attack yesterday (or that is what my admin told me)

I think that some people out there have too much free time and don't know what to do with it.

Mismatching/incorrect use of ID and NAME in templates and core 15 years 3 months ago #6203

  • JonusC
  • JonusC's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Thats a damn shame :( hackers are no fun.

I bet it's a JoomlaComment competitor...

:laugh:

I'll speak to you soon Daniel!
  • Page:
  • 1
Time to create page: 0.094 seconds