SOLVED:  The mystery was mundane, as always.  I had an undefined msg in my change:attr event.  I have no idea how it got there, or when, as it was section I hadn't messed with in a while, but who knows! Best API user NA. EDIT: My post title was supposed to be "changing a <select> causes a reference error" EDIT: Actually, changing anything on my char sheet is triggering this error.  Can't find where it might be triggering in my chage:attr, event but I'm guessing its something like that. Basically, the only place I use the variable msg  is in : on ("chat:message", function(msg) { }) I have a bunch of <buttons type="roll">, in my char sheet that trigger scripts through "!example" chat messages.  However, none of these buttons are associated with the attributes that change with this <select>.  Why would this <select> or the associated <input type="hidden> seem to trigger something that leads to a chat:message event without a defined "msg"? <input type="hidden" name="attr_protoApp0" class="sheet-soul-elem-switch"><select style="font-weight:bold;width:80px" class="sheet-soul-elem-select1" name="attr_protoApp0">                   <option style="color:brown;font-weight:bold" selected = "selected" value="0">Solid</option>                   <option style="color:blue;font-weight:bold" value="1">Flow</option>                   <option style="color:pink;font-weight:bold" value="2">Life</option>                   <option style="color:red;font-weight:bold" value="3">Radiant</option>                   <option style="color:green;font-weight:bold" value="4">Scatter</option>                   <option style="color:black;font-weight:bold" value="5">Void</option>                 </select> .sheet-soul-elem-switch[value="0"] + .sheet-soul-elem-select1 {     color: brown; } .sheet-soul-elem-switch[value="1"] + .sheet-soul-elem-select1 {     color:blue; } .sheet-soul-elem-switch[value="2"]  + .sheet-soul-elem-select1 {     color: pink; } .sheet-soul-elem-switch[value="3"]  + .sheet-soul-elem-select1 {     color: red; } .sheet-soul-elem-switch[value="4"]  + .sheet-soul-elem-select1 {     color: green; } .sheet-soul-elem-switch[value="5"]  + .sheet-soul-elem-select1 {     color: black; }