The value of attribute [ data-type ] must be in double quotes – custom html widget error

change it to CSV

data-type="Information Gathering, Farming & Husbandry, Delivery Service, Emergency Response, Remote Inspections, Mapping & Surveying, Maritime Success, Military & Defense Support, Scientific Research, Real Time Surveillance "

then do

var toRotate = elements[i].getAttribute('data-type').split(", ");

the .split(", ") turns the CSV string into an array. then do

new TxtType(elements[i], toRotate, period);

the toRotate is passed into TxtType as-is, it’s not parsed by JSON anymore, just kept the array it is.

prepare for a mod to flag this as unrelated to wp