Skip to main content

Tiki should use modern meta tag for charset

Status
Open
Subject
Tiki should use modern meta tag for charset
Version
27.x
Category
  • Less than 30-minutes fix
Feature
Meta Tag
Resolution status
New
Submitted by
Gary Cunningham-Lee
Lastmod by
Gary Cunningham-Lee
Rating
(0)
Description

I was doing a little testing with https://github.com/ffoodd/a11y.css. One of the errors it flags is <head> must start with charset . Tiki doesn't have that exact meta tag, like <meta charset="utf-8"> but it has <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> .

A search turned up this information:

Both and serve the same purpose of declaring the character encoding for the HTML document. However, is the preferred method in HTML5 because it is more concise and easier to read.

The http-equiv="Content-Type" version was used in older HTML specifications like HTML 4.01, while the charset attribute is the standard in HTML5. Although both are still supported by browsers for backward compatibility, the simpler is recommended for modern web development.


I checked a dozen or so tech and popular websites and found only one - drupal.org - using the http-equiv="Content-Type" version. Functionally, it apparently doesn't make a difference, but just to be up to date and use the modern syntax it seems like a good idea to update that (assuming there are no downsides to this change).

Importance
7
Easy to solve?
8
Priority
56
Demonstrate Bug (Tiki 18
Please demonstrate your bug on show2.tiki.org
 About show2.tiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.

Version: Create show2.tiki.org instance
Demonstrate Bug (older Tiki versions)
Please demonstrate your bug on show.tikiwiki.org
 About show.tikiwiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.

Version: Create show.tikiwiki.org instance
Ticket ID
8613
Created
Wednesday 27 March, 2024 03:50:28 GMT-0000
by Gary Cunningham-Lee
LastModif
Wednesday 27 March, 2024 03:50:28 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item