|
Cash |
As has been discussed on the community site, Elgg's XHTML, CSS, and UI could definitely be improved. As a starting place, I'd like to start a discussion on a guideline for XHTML. This guideline would be followed by core developers and serve as a good standard for plugin developers. The goal is better markup which makes it easier to do UI/UX work with Elgg. What rules or recommendations would you like to see in an Elgg XHTML guideline? (Please note, this is for XHTML - not CSS. We'll get to CSS soon enough - edit - probably no way to keep them separate!). XHTML
The CSS discussion is here. |
|
Cash |
The markup should be valid as defined by the w3 validator http:/ Valid markup makes it easier to debug XHTML problems. It can make the rendering more consistent in browsers. It makes a project/site look more mature and professional. It's just a good idea. |
|
Brett |
What do you think about dropping support for IE6? It's 9 years old and 2 major versions behind...And I really dislike it. |
|
Brett |
http:/ Regardless, you're probably right that between corporate control and school systems, IE6 should be supported at some capacity. If it can be done and isn't a huge drain on resources, it sounds good to me. |
|
danielwells |
According to the Microsoft End of Life page for IE (http:/ I have decided not to support it on my site (encourage users to upgrade or switch). I waste enough time troubleshooting rendering issues with IE7 and don't want to hassle with IE6 as well. |
|
Cash |
Could we get some examples of simplfying the Elgg DOM? I know pulling out tables makes it cleaner but I'm looking for other examples. |
|
morgar |
@Federico: Yes, I agree strict is really not a big deal, I already used it in a couple of sites. |
|
Cash |
I added a "Keep the DOM simple" item. The river is a good example of excessive markup - 6 divs and 1 paragraph tag for a single river entry. |
|
alfalive |
Cool xhtml means that we get width and height for images code in future... :)
<img src="http:/ |
|
alfalive |
@morgar This code in header produce many errors <script type="text/javascript" src="http:/ |
|
morgar |
Hmmm, nope, the original lines are different, I have no idea where I got the modified version, but it works :) |
|
danielwells |
Google not supporting IE6 anymore (in case you missed it). http:/ |
|
Cash |
Doug - you may find this link useful in understanding how HTML5 relates to XHTML: http:/ Of course, this link is a lot more fun: http:/ |
|
douglerner |
Thanks, Cash. I will look that all over! doug p.s. Posts here still seem to be slow, don't they? |
|
Cash |
@doug - XHTML2 is dead. I think of HTML as defining the tags and XHTML as defining a set of rules for using the tags (lowercase, must be closed, etc.). |
|
morgar |
@smeranda Thanks for the example. Yes, I guessed the only way for doing this without inline js was doing some kind of parsing inside the function. |
|
smeranda |
I don't have a strong preference, as long as they are consistent. How about using a psuedo-namespace and preferencing all elgg classes with 'elgg_' or 'elggXXX'? |
|
Brett |
Having a chat with Pete about this, we're leaning toward using underscores for consistency with the views names. Consistency is nice :) |
|
Cash |
CSS discussion here: http:/ |
