Closed tombigel closed 13 years ago
I remember seeing a similar issue already reported. I think we should be put a wiki up explaining how to switch conditional comments from to
with pros and cons for both.With Drupal the body also creates a lot of redundant code because it is assigned many classes through Drupal's theming system.
I hate the "Comment and Close" button. Pressed it by mistake again..
How about this: http://trashb.info/87826f7b
PS: Sorry for posting the code in the link, github keeps eating my code :(
You have to replace all > and < with > and < (with a semicolon after them)
About your solution, it is elegant, but the beauty of the original is that it doesn't use scripts at all.
It's less of a boilerplate question and more of an HTML5 standards and conventions question:
I'm working on a website based on Drupal 7 beta. Drupal 7 default themes are packed with RDFa (http://www.w3.org/TR/rdfa-in-html/) tags and XML namespaces set on the HTML tag and throughout the document, and also using a DOCTYPE I've never seen before.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
I'm trying to keep both Drupal's conventions while maintaining HTML5 conventions and html5boilerplate goodness.
One good example is using IE conditional comments and those RDFa conventions: This is the Drupal theme code i wrote for the HTML tag:
And this is what Drupal generates:
It's not a disaster, but it feels so much redundant...
I found some references over the internet about using RDFa and HTML5 but couldn't find clear answers about what is mandatory, what is standard and what can be ommited for clearer code.
Any thoughts?