Page MenuHomePhabricator

Two HTML Validation errors in MediaWiki core
Closed, DeclinedPublicBUG REPORT

Description

aria-pressed

Error: An input element with a type attribute whose value is checkbox and with a role attribute whose value is button must have an aria-pressed attribute whose value is true.

From line 48, column 78; to line 48, column 186

-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div c
			. Html::element( 'input', [
				'type' => 'checkbox',
				'role' => 'button',
				'id' => 'toctogglecheckbox',
				'class' => 'toctogglecheckbox',
				'style' => 'display:none',
			] )

Perhaps this be:

			. Html::element( 'input', [
				'type' => 'checkbox',
				'role' => 'button',
				'id' => 'toctogglecheckbox',
				'class' => 'toctogglecheckbox',
				'style' => 'display:none',
				'aria-pressed' => 'true',
			] )

Also see:

A link element must not appear as a descendant of a body element

Error: A link element must not appear as a descendant of a body element unless the link element has an itemprop attribute or has a rel attribute whose value contains dns-prefetch, modulepreload, pingback, preconnect, prefetch, preload, prerender, or stylesheet.

From line 2425, column 124; to line 2425, column 200

nce-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r844"/><cite
					// We were going to use an empty <style> here, but there
					// was concern that would be too much overhead for browsers.
					// So let's hope a <link> with a non-standard rel and href isn't
					// going to be misinterpreted or mangled by any subsequent processing.
					return Html::element( 'link', [
						'rel' => 'mw-deduplicated-inline-style',
						'href' => "mw-data:" . wfUrlencode( $key ),
					] );

sibling task

Event Timeline

Aklapper renamed this task from HTML Validation errors from https://validator.nu/ to Two HTML Validation errors in MediaWiki core.May 4 2022, 11:03 PM
Aklapper added a project: MediaWiki-Parser.
TheDJ subscribed.

Issue 1 is an issue in the 2010 Vector legacy skin. I think it is essentially T243126

Issue 2 is a known issue T200206, but works in every browser and facilitates important functionality. We don't comply for compliance sake.

Izno subscribed.

Per TheDJ. Closing as duplicate doesn't work with two prior tasks.