cancel
Showing results for 
Search instead for 
Did you mean: 

W3C validation for UI5 Application

Former Member
0 Kudos

Hello Experts,

There is a generic rule in the Non-SAP web development world that the web pages should be checked with "W3C validators". http://validator.w3.org/ for instance. Is it also relevant for UI5 applications?

Thanks

Jayant

Accepted Solutions (1)

Accepted Solutions (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

As per W3C validator site, it checks the markup validity and below are the few questions and answers taken from W3C help.

What is Markup Validation?



Most pages on the World Wide Web are written in computer languages (such as HTML) that allow Web authors to structure text, add multimedia content, and specify what appearance, or style, the result should have.

As for every language, these have their own grammar, vocabulary and syntax, and every document written with these computer languages are supposed to follow these rules. The (X)HTML languages, for all versions up to XHTML 1.1, are using machine-readable grammars called DTDs, a mechanism inherited from SGML.

However, Just as texts in a natural language can include spelling or grammar errors, documents using Markup languages may (for various reasons) not be following these rules. The process of verifying whether a document actually follows the rules for the language(s) it uses is called validation, and the tool used for that is a validator. A document that passes this process with success is called valid.

With these concepts in mind, we can define "markup validation" as the process of checking a Web document against the grammar (generally a DTD) it claims to be using.

Is validation some kind of quality control? Does "valid" mean "quality approved by W3C"?



Validity is one of the quality criteria for a Web page, but there are many others. In other words, a valid Web page is not necessarily a good web page, but an invalid Web page has little chance of being a good web page.

For that reason, the fact that the W3C Markup Validator says that one page passes validation does not mean that W3C assesses that it is a good page. It only means that a tool (not necessarily without flaws) has found the page to comply with a specific set of rules. No more, no less. This is also why the "valid ..." icons should never be considered as a "W3C seal of quality".

Is validity the same thing as conformance?



No, they are different concepts.

Markup languages are defined in technical specifications, which generally include a formal grammar. A document is valid when it is correctly written in accordance to the formal grammar, whereas conformance relates to the specification itself. The two might be equivalent, but in most cases, some conformance requirements cannot be expressed in the grammar, making validity only a part of the conformance.

What is the Markup Validator and what does it do?


The Markup Validator is a free tool and service that validates markup: in other words, it checks the syntax of Web documents, written in formats such as (X)HTML.

The Validator is sort of like lint for C. It compares your HTML document to the defined syntax of HTML and reports any discrepancies.

Learn more about the Markup Validator and the languages it can validate.

So basically it does not mean that valid web page is good web page and vice versa. it just checks the syntax of markup and same can be done by various tools (also available with IDEs).

I guess below question and its answer provides answer to your question.

Is validation some kind of quality control? Does "valid" mean "quality approved by W3C"?

Regards,

Chandra

Former Member
0 Kudos

Thanks Chandra,

The second part(vice versa) of your statement is not aligned with the response from the W3C help

"it does not mean that valid web page is good web page and vice versa."

Basically, an invalid page indicates its NOT a good web page. So, this would mean, we should check UI5 applications againt W3C validator to atleast confirm that it is NOT invalid. Agree?

Or am i missing something?

Thanks

Jayant

ChandraMahajan
Active Contributor
0 Kudos

Hi Jayant,

These validations are just syntax validation and  if there are any error then it does not indicate that its bad web page. But its fine to check against W3C validator as extra step but IMO it is not the MUST DO activity.

For e.g. check against this url Table - sap.ui.table

This is standard UI5 application for table control and check what errors you will get.

Based on the errors, I do not think it is mandatory to rectify these errors as it does not affect functionality of the application at all.

Regards,

Chandra

Answers (0)