meekostuff / HTMLDecor

HTMLDecor means full separation of content from presentation. With CSS you can change the styling of a whole site with one stylesheet. With HTMLDecor you can change everything - banner, navbars, ads, page-layout and stylesheets. This facilitates API-first / HTML-payload sites which are simple, robust and low-bandwidth, plus "pushState assisted navigation" comes for free.
http://meekostuff.net/projects/HTMLDecor/
Mozilla Public License 2.0
23 stars 4 forks source link

What should be the behavior of merging <html>, <head>, <body>? #20

Open shogun70 opened 11 years ago

shogun70 commented 11 years ago

Previously there was no merging done, so that whatever attributes were on these elements in the landing-page remained the same for the whole session (unless they were modified by script).

As of 2.0.x.15 these elements will have only the attributes specified in the decor document.

It may be appropriate for attributes from content documents to be merged with (or over-ride) those from the decor document.

One alternative is to make these attributes from the content document available via an API call.