Adding an ID attribute to all HTML elements of a web application?

I am currently building a web portal using RoR, MySQL, HTML, CSS and jQuery etc. I received a request from my automation testing engineer to add identification attributes (if possible, NAME attribute also) to all elements my application.

I am embarrassed to do this, maybe I'm not sure if this is a good practice or not, so someone can help me with certain disadvantages / problems with adding identifier attributes to all elements of my application.

Thanks
Shiva

+5
source share
2 answers

, , ( , ). body div:nth-of-type(4) ul li:nth-child(5) a , . . , -:

id ...

- :

  • , nav, header, footer, main, section.
    .
  • id /) . , , id ( )!
  • class (, , / , ,...)
  • name . HTML5 , <a>, . , , .

, -, , , .

+5

id , (, ).

, id .

, id , , , , , .

0

All Articles