Is it possible to style a custom HTML tag called "location" without directly modifying the DOM?
For instance, having
<location loc-id="14" address="blah" zipcode="14" />
Would it be feasible to render it like this:
<div class="location">
<div>Blah></div>
<div>14></div>
</div>
I am aware that I could extract data from attributes and create new elements in the DOM, but I'm interested in exploring options that do not involve direct DOM manipulation.
It may sound unlikely, but I wanted to inquire about the possibility.