Given markup like:
<audio-synth id="foo" osc1="square" osc2="sine" frequency="320"></audio-synth>I can grab a reference to this:
var synth = document.getElementById("foo");Then I expect (tell me if this is correct) that I can reference the values via properties:
console.log("osc1: %s\nosc2: %s", synth.osc1, synth.osc2);
// outputs:
// osc1: square
// osc2: sineAs well as via:
console.log("osc1: %s\nosc2: %s", synth.getAttribute("osc1"), synth.getAttribute("osc2"));
// outputs:
// osc1: square
// osc2: sine- I expect that when I change the property the attribute ? Does or doesn't update?
- I expect that when I change the attribute, the property ? does or doesn't reflect?
- I expect that I can define a custom setter for these properties which ? (affect/don't affect the attr)?
- I expect that I can observe changes to ? (the attribute, the property, both)
- My observer would ? (be before native behavior, be after native behavior, potentially supplant native behavior)