The use case:
switch(element.tagName){
case 'STYLE':
element.type = 'text/css';
case 'LINK':
element.rel = 'stylesheet';
break;
}
In this case the rel needs to be applied to both. So the above doesn't have a break; after case 'style:' and the code works, and I understand it can do this - for <style> elements it added both rel and type and for <link> elements only have rel applied.
But is this an appropriate way to use it?