[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #11312(new surveytool)

Opened 3 weeks ago

Last modified 3 weeks ago

Make all id attributes unique for valid html in SurveyTool

Reported by: tbishop Owned by: anybody
Component: survey Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

A requirement for valid html is that within one web page, each id attribute should be unique, that is, no two elements within the same web page should have the same id attribute. SurveyTool includes id attributes for many html elements, and they are not always unique. For example, each row (tr element) generally has cells (td elements) with id="codecell", id="comparisoncell", id="nocell", id="statuscell", id="proposedcell", id="addcell", and id="othercell". If a page has 100 rows, then it has 100 elements with id="codecell", 100 elements with id="comparisoncell", and so forth.

While I'm not aware of any bugs in Survey Tool that are caused by the non-unique id attributes, there may be such bugs, and in any case valid html is generally preferable. I noticed the non-uniqueness while studying how to use Selenium WebDriver to implement automated tests for Survey Tool. Specifying elements by their id attributes is a common way of using WebDriver, but it wouldn't work reliably for the elements in Survey Tool whose id attributes aren't unique.

Attachments

Change History

comment:1 Changed 3 weeks ago by tbishop

This and other validity problems are indicated when an ordinary ST page such as
https://st.unicode.org/cldr-apps/v#/en/Gregorian/ is pasted into https://validator.w3.org -- see https://validator.w3.org/nu/?doc=http%3A%2F%2Fst.unicode.org%2Fcldr-apps%2Fv for example.

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.