Opened 9 years ago

Closed 9 years ago

#1920 closed enhancement (fixed)

Use 'classList' for manipulating DOM element classes

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 3.5
Component: web Version:
Keywords: Cc:

Description

The current implementation uses string manipulation which may cause issues if adding or removing classes to an element that and a classname is a substring of another classname.

See http://www.w3schools.com/jsref/prop_element_classlist.asp for more information.

Change History (2)

comment:1 by Nicklas Nordborg, 9 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [6723]) Fixes #1920: Use 'classList' for manipulating DOM element classes

Note: See TracTickets for help on using tickets.