After further research, I think this is the approach I'd use for manually adding an attribute to a MediaElement (<video>), right? object video = CSHTML5.Interop.GetDiv(MediaElementForVideo); CSHTML5.Interop.ExecuteJavaScript("$0.createAttribute('webkit-playsinline')", video);