: 3492 | 87812 | 9797

Make XPages generate better html code 
Now Available: "The Social Software Platform You Already Own" Position Paper from Elguji Software. A must read for every IBM Lotus Software customer.
Use this IdeaSpace to post ideas about Domino Server.

: 35
: 37
: 2
: Domino Server / Web application server
: clean html code, Accessibility, WAI, Progressive enhancement
: Jan Schulz 23 Jun 2009
:
: / Email
XPages code is a mess, it does not handle situation, where browserfeatures are missing and it is not accessible by default. This might be acceptable for internal websites, where you can control the browser and users, but it is not for customer facing websites. This should be fixed.
 
One of the problems is, that it is unuseable without JavaScript enabled: try opening a section on the iamlug FAQ page or the information at the end of the Xpages wiki pages (see also Progressive enhancement in web design for how it should be done: in this examples the <a> element should contain a proper link to a page with opened sections).
 
It's als not accessible (try tabbing to the XPages example: you don't reach all links!), which im my opinion is a requirement nowadays in public websites. Xpages sites should comply to this per default.
 
Another thing is, that the code is a bloated and should be cleaner and smaller, so that it will load faster (and cheaper: less bandwidth used).
 



1) Paul Hudson (24 Jun 2009)
I pointed out these issues at Lotusphere. There's no structure to the html and an over-reliance on javascript. Switching off CSS and Javascript means that the pages look a mess and don't work. You can create accessible XPages but you have to use the code view to start to add back the missing items (like a links, marking up navigations as lists etc).
2) Jan Schulz (24 Jun 2009)
But that's the problem: it's hard to do the right thing with XPages as the default is this mess, but it should be the other way round: make it easy to build proper modern and standard complying pages and hard to build a mess.
3) Mark Demicoli (02 Jul 2009)
I really don't buy this "it shouldn't be JavaScript dependant" argument, this day and age.

Javascript is ubiquitous now! If you're building an application that needs to work on a 10 year old Nokia, write a separate interface.

There's a million things a user or company can do to sabotage their experience. Like unplugging their monitor. Should x-Pages have a special mode for when people unplug their monitors?

Am I right or am I 9/10th's right?

4) Jan Schulz (04 Jul 2009)
Tell that google... Or screenreader (Wasn't there a law in some contries to make your websites accessible in certain circumstances?) There is a difference between using JS everywhere to enhance your browsing experience and leaving out a way to use it without JS.
5) Julian Buss (05 Jul 2009)
I do not see this as a priority:

1.) the HTML created by an XPage highly depends on what the developer does with the XPage. You code directly in the markup and fix many things if you want to.
You can even disable the automatic code generation and put out completely customized HTML if you like.

So, from my point of view things are not that bad.

2.) for a high volume public website I agree that it should work basically without JavaScript.
But that'a not what XPages are for. XPages are for building *applications*, not websites. And if a user wants to use an application, he needs Javascript and a modern browser.
With the same argument you could ask for support of Internet Explorer 5 or Lynx. Both wishes are out of the question.

3.) I agree that supporting Accessibility should be delivered in the near future.

4.) Passing the HTML validation test without error would be nice. But how important is that really? When all modern browsers (IE 7,8 / Mozilla, Webkit, Opera) work with a XPages application, what point is there really to have 100% valid HTML?

And, take for example this very ideajam page. How valid is that? It has 92 errors in the validation test. And how votes for "making ideajam 100% valid"?

Take a page from amazon.. I just validated amazon.de Homepage and it has 1635 errors.

Even google.de has 42 errors.

So again: how important is 100% valid HTML?
6) Henning Heinz (05 Jul 2009)
Any software (XPages or something else) should not generate worse code than I can do myself. Better code also is lowering your risk that new browser releases will break your site. I find it is a huge disadvantage that nearly every new browser release is causing major headaches for many IBM products like Quickr or Sametime.
7) Jan Schulz (05 Jul 2009)
@Julian Buss: The Idea itself is not about standard complient (I let that out on purpose, as I know that this is a fragile argument), but I would argue, that standard compliant reduces your risk to blow up future browsers (see @6), makes the code easier to read, cleaner and smaller, and also accessible. Also, I don't see any reason to not do it in a framework: if you can do it as easily standard complient than not, why risk the non standard complient way? Why make it hard for people to do it properly?

Not every page needs to be standard complient, but xpages is not only not comliant by design, it goes a long way to discard any proper coding convention there is in modern web dev.

For the JS issue: xpages will be used in web pages (see this ideajam or the IamLug website) and people will complain if their pages will not get into google, because goole won't see the content. Again: why make it hard to be a good guy?

A Framewokr should make good code easy and not hard.










:
:

Buy IdeaJam Today!


You can run IdeaJam in your company. It's easy to install, setup and customize and your employees and customers will immediately see results.

Phone: +1 (360) 450-5022

Email: sales@elguji.com

Learn more >>

Welcome to IdeaJam


IdeaJam is a place where people can post and share their ideas, and gauge the marketability, popularity and viability with input from others.

When an idea gets posted, others can help promote or demote the idea and provide comments. Popular ideas will bubble to the top.

Make your opinion count.

Share


Post your idea - from ways we can improve IBM Lotus Software to things we've haven't even yet thought of.

Vote


Check out other people's ideas and vote on the ones you like best. The community votes. The community decides.


Discuss


Talk about ideas with your peers in the IBM Lotus Community and help make them even better.



4
ideajam ideas - Lotusphere
-5
Make Ideajam database as default application on domino
18
All Design Elements view in Designer
0
Create an AppStore for $1.99 apps
13
Symphony API integration in Agents
5
In the view-quick-search dialog, there should an "advanced search" option to find a document in the current view based on the NoteID or UNID
8
Standardize Definition of Application
12
Cleanup process for mystery problems
3
DDM could benefit from addng Twitter or SMS to Notifications
15
license model for universities and schools (education)
4
Dogear: Plugin for many browsers to store bookmark in dogear
8
Give Domino an up-to-date Servlet Engine
13
Admin Client - Server Console
9
Notes Calendar - Show Calendars
12
I wish FilePath would consistently return a relative path whenever possible
26
Select Category option in Views to tick all documents within a category and sub-categories
11
Calendar overlay: documentation how to overlay application calendar
6
inbox: newest first
7
Lotus Script: record call history for for informative debugging
8
Feed Readers page for Domino
17
Get Rid of "Copy as Table" in instances where it doesn't work
16
Expose the SPR database to customers so others can easily get added to the request
10
Multi value core control







IdeaJam developed by




Hosting by