HTML5 doesn't wrap unbroken string when it's in a variable
I have a simple project with two text boxes.
The first text box is just a standard text box, into which I have entered some text with no spaces (i.e. "123456789012345678901234567890". I've made the text box somewhat narrow. When I publish and view in Flash or HTML5, the text is displayed with a forced line break so that it doesn't overflow past its borders, as expected.
The second text box contains a reference to a variable (i.e. it says "%myVariable%"). I have set myVariable to be the same text value as the first text box. When I publish and view in Flash, it works as expected (a wrap is forced). When I view the HTML5 version, there is no wrap and the text extends past the text box off the screen.
Is there a way to prevent variables in text boxes from displaying past their borders if they have no spaces to wrap on? It's an edge case but something that would be nice to have as this variable is eventually going to be input by the user.