Snippet demonstrating dynamically adding a custom element and setting an attribute of it.

Demonstrates how to dynamically adding a custom element and set an attribute of it.