Forum .LRN Q&A: HTML Validation icon for theme-zen

Request notifications

Hi all,

Now that user pages in a .LRN installation that uses theme-zen validate against HTML 4.01 Strict, I think we should advertise the world and add the Validation icon to the footer.

Validation Icons: http://www.w3.org/QA/Tools/Icons

Which one should we pick, the gold or the blue one? :)

Collapse
Posted by Raúl Morales Hidalgo on
The blue one looks more zen to me :)
Collapse
Posted by Emmanuelle Raffenne on
Yeah I agree. Blue!
Anyhow it can be changed very easily, just remove "-blue" in the src of the image.

I added it and committed to oacs-5-4 branch.

Collapse
Posted by Carl Robert Blesius on
Nice work on getting this done! Congratulations, but I would have avoided the icon (ignoring forcing it upon installs and people's local designs), b/c as soon as a user posts something on the page the icon is likely a lie (unless we are validating user content before they post it).
Collapse
Posted by Don Baccus on
Uh, it's not forced on people's local designs, by definition they'll be changing the master template/css when they customize ...
Collapse
Posted by Emmanuelle Raffenne on
I guess there are many liars around there then :).
Very few platform actually check the validity of the HTML entered by users but if the platform itself produces valid HTML, they claim it. Why won't we?
Collapse
Posted by Carl Robert Blesius on
Don, the way we tried to design Zen allows for change of look and feel of a site using css (without touching the adp). Ideally only totally funky sites would require someone to edit the template.

I just checked the commit and noticed that emma has <div id="footer-icons"> </div>. That was nice. Allows me to include a display: none on that div in the css when we move that to our install (I dislike the look of those icons and they take up a lot of space). Thanks Emma.

Yes, most people that have that on sites where they don't have control of user input are lying, but there are people who do validate user supplied content. The simple way of validating (throwing an error message and asking the user to clean it up) creates problems when people cut/paste into wysiwig forms (95% of the population doesn't know what to do when confronted with invalid code error message when all they want to do is post some content).

Please take this feedback with a grain of salt. The icon is secondary to the work you have done on getting this done. Congratulations.

Collapse
Posted by Carl Robert Blesius on
Funny, I just included an unquoted <div id="footer-icons"> </div> in the above post and it doesn't show up as content on the page (Enhanced Text didn't quote the html I included). We should fix that before we worry about validating any content ;). I will edit the post so it shows up.
Collapse
Posted by Dave Bauer on
Enhacned text allows HTML, it doesn't quote it.
Collapse
Posted by Emmanuelle Raffenne on
Please take this feedback with a grain of salt

Of course Carl. To see the icon feels good though :). Anyway, checking user content will be the next step for sure.

... then we'll add next to the icon "and now it's true". Just kidding :)