PDA

View Full Version : W3c and XHTLM strict compliance



giova
7 Apr 2009, 5:34 AM
Dear all,

I've to develop a new web management application and I would have choosen Grails and Ext Js for doing it.
On the various constraints of that application one is about a "full" W3c and XHTML strict compliance.
My question is about using Ext Js within some Grails forms.

Do you think that requested compliance will be compromised ??

Sorry for my "not" techical speaking but I'm not the programmer who speaks only italian.
Best regards
Giovanni

arthurakay
7 Apr 2009, 6:27 AM
W3C compliance is hard to guarantee in an application/website using AJAX.

ExtJS does a pretty good job creating valid XHTML code... though I've never really tested its output to see if it adheres to strict or transitional.

The hard thing is that any AJAX application/website has it's DOM elements changed during the course of UI interaction. This means that your page might start as W3C compliant, and some motion or interaction might affect that compliance.

Furthermore it's impossible to test for W3C compliance after the page first loads (at least as far as I know) -- I mean, how do you run the code through a validator after AJAX changes the DOM? Your source code doesn't change... just the DOM elements displayed in your browser.

giova
7 Apr 2009, 7:33 AM
Many thanks !

These are the validator I use to test application, but I need to ask to my collegue for you tech comments.

http://validator.w3.org/ (http://validator.w3.org/)
http://jigsaw.w3.org/css-validator/ (http://jigsaw.w3.org/css-validator/)

Bye
Giova

joeri
7 Apr 2009, 11:54 PM
Internally the browser does not know XHTML. It is all treated as HTML by the parser and DOM engine. So, I would agree that the question is meaningless except for the initial page sent to the browser, which in ExtJS applications is often just a more or less empty placeholder.