Numbered Steps to Reproduce Problem: Simply output some text to a control and check if it was modified. I've been able to reproduce this consistently, on multiple versions. My specific .dms file can be seen below.
Code Snippet (if applicable) to Reproduce Problem:
<byondclass name = "custom_popup">
<style>
.byond_custom_popup:hover {
opacity: 1;
-webkit-transition: opacity 0.5s ease-in;
-moz-transition: opacity 0.5s ease-in;
-o-transition: opacity 0.5s ease-in;
-ms-transition: opacity 0.5s ease-in;
transition: opacity 0.5s ease-in;
}
.byond_custom_popup {
width: 200px;
height: 150px;
opacity: 0.5;
position: absolute;
top: calc(50% - 200px / 2);
left: calc(50% - 150px / 2);
background: #ccc;
color: #fff;
font-family: 'Roboto';
font-size: 12px;
text-align: center;
text-shadow: 1px 1px 0 #000, 2px 2px 0 #000;
border: 1px solid #000;
}
</style>
<script>
{
fn: {
output: function(obj) {
if(obj.text) this.topic("action=output;text=" + obj.text);
}
}
}
</script>
<div id = "main_content"></div>
</byondclass>
Expected Results: Receiving the text as it was sent.
Actual Results: Receiving the text with the html entities span and line break. Example result: [received text]
Does the problem occur:
Every time? Or how often? Every time.
When does the problem NOT occur? It doesn't.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) I tested in 508.1292 and it still occurred.
Workarounds: None that I've come across so far.
The output came back only with a line break at the end, no span tags. However, in my main project using the snippet in the initial post, I get the text back as described initially, even when I remove the color property from the CSS (which is what I thought the cause was).
Edit: I disabled my main project's .dmf skin and the span tags no longer appear, though the line break still does.