stratacode / issues

Empty StrataCode project to store github issues
0 stars 0 forks source link

HTML - Improve default behavior for merging tags #27

Open jeffvroom opened 10 years ago

jeffvroom commented 10 years ago

When you a merging tags in the SCHTML language, if there's no id we name the tag based on it's position in the hierarchy. Thus we merge "body" and "body" if you extend one page from another which is an important use case. But we also will merge

     <div style="..."> and <div class="...">.  

This can cause confusing when you just mean to append some content tags in a base tag you extend. You have to go and add ids on each so they are unique. We should change this so that each tag can decide if it should merge or not based on sensible defaults for the tag. Html, head, body, all merge by default as they are like singleton tags. The others only merge if their id specifically matches.