10BC0 WD08-1 suggests semantics measurable, but are they? · Issue #24 · w3c/sustainableweb-wsg · GitHub
[go: up one dir, main page]

Skip to content

WD08-1 suggests semantics measurable, but are they? #24

@hidde

Description

@hidde

In WD08-01 Validate Source Code for Semantic Accuracy, we suggest HTML validation checks syntax and semantic accuracy.

I'd say the first is correct, the HTML validator will check syntax and tell you if you miss required attributes or get testing wrong.

But the second, semantic accuracy, is not checked. For instance, if an author wants to display this list:

  1. Whisk eggs
  2. Fry mixture in a pan
  3. Add salt and pepper

they could mark up the list with <ol> (ordered) or with <ul> (unordered). It depends on whether they intend the order to matter. Are they okay with adding salt and pepper at the start or whisking at the end?

The same goes for a lot of HTML elements, the procedure to check is manual, by looking at the content's structure and verifying if the HTML conveys it.

If others feel the same, I see a few ways of potentially resolving this:

  • Rewrite 3.8.1 to be about valid HTML. This might make it more specific to sustainability too, as (very) large validation issues could impact page performance (while semantics have more impact on SEO and accessibility)
  • Remove 3.8.1 and its corresponding technique; I feel we could consider this, as a similar criterion (4.1.1 Parsing) was also recently removed from the last version of WCAG, as (paraphrasing) browser parsers can deal sufficiently well with syntax issues

Metadata

Metadata

Assignees

Labels

taskforce-webdevThis issue affects the web development taskforce.technicalCorrections, bugs, or minor omissions

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0