Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: utf-8 lowercase #6365

Merged
merged 5 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/public/repl/~repl-server-host.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik REPL Server</title>
<style>
body {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default component$(() => {
<QwikCityProvider>
<head>
<script dangerouslySetInnerHTML={uwu} />
<meta charset="UTF-8" />
<meta charset="utf-8" />
<RouterHead />
<ServiceWorkerRegister />
{/* <script dangerouslySetInnerHTML={`(${collectSymbols})()`} /> */}
Expand Down
4 changes: 1 addition & 3 deletions packages/insights/src/root.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import './global.css';

import { component$ } from '@builder.io/qwik';
import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
import { Insights } from '@builder.io/qwik-labs';
import { RouterHead } from './components/router-head/router-head';

export default component$(() => {
return (
<QwikCityProvider>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<link rel="manifest" href="/manifest.json" />
<RouterHead />
<Insights
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-city/buildtime/vite/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export function getUnmatchedRouteHtml(url: URL, ctx: BuildContext): string {
return `
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="Status" content="404">
<title>404 Not Found</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function minimalHtmlResponse(status: number, message?: string) {
const color = status >= 500 ? COLOR_500 : COLOR_400;
return `
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="Status" content="${status}">
<title>${status} ${message}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-city/runtime/src/qwik-city-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface QwikCityProps {
// * ```tsx
// * <QwikCityProvider>
// * <head>
// * <meta charset="UTF-8" />
// * <meta charset="utf-8" />
// * </head>
// * <body lang="en"></body>
// * </QwikCityProvider>
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-labs/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default () => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
<script type="module" src="/src/debug/index.ts" />
</head>
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-react/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Root = component$(() => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
<style>
{`
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/core/container/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en" q:container>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/core/render/jsx/types/jsx-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ type SpecialAttrs = {
children?: undefined;
};
meta: {
charset?: 'UTF-8' | undefined;
charset?: 'utf-8' | undefined;
children?: undefined;
};
meter: {
Expand Down
4 changes: 2 additions & 2 deletions packages/qwik/src/core/render/ssr/render-ssr.unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ test('html slot', async () => {
await testSSR(
<HtmlContext>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik</title>
</head>
<body>
Expand All @@ -1462,7 +1462,7 @@ test('html slot', async () => {
<!--qv q:id=0 q:key=sX:-->
<!--qv q:s q:sref=0 q:key=-->
<head q:head>
<meta charset="UTF-8" q:head />
<meta charset="utf-8" q:head />
<title q:head>Qwik</title>
<link rel="stylesheet" href="/global.css" />
<style q:style="fio5tb-1" hidden>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Root = () => {
return (
<html>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
</head>
<body>
Expand All @@ -30,7 +30,7 @@ export const Root = ()=>{

<head>

<meta charset="UTF-8"/>
<meta charset="utf-8"/>

<title>Qwik Blank App</title>

Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/optimizer/core/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ export const Root = () => {
return (
<html>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/basic/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default component$(() => {
return (
<QwikCityProvider>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<link rel="manifest" href="/manifest.json" />
<RouterHead />
<ServiceWorkerRegister />
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/e2e/src/entry.ssr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function (opts: RenderToStreamOptions) {
return renderToStream(
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/empty/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default component$(() => {
return (
<QwikCityProvider>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<link rel="manifest" href="/manifest.json" />
<RouterHead />
</head>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/library/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default () => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/perf.prod/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default () => {
return (
<html>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Blank App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/qwikcity-test/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Root() {
<SomeProvider>
<QwikCityProvider>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<RouterHead />
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/site-with-visual-cms/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default component$(() => {
return (
<QwikCityProvider>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<link rel="manifest" href="/manifest.json" />
<RouterHead />
<ServiceWorkerRegister />
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/starter-partytown-test/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default () => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik + Partytown Blank App</title>
<script dangerouslySetInnerHTML={partytownSnippet({ debug: true })} />
</head>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/todo-old-test/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const Root = () => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Demo: Todo</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion starters/apps/todo-test/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const Root = () => {
return (
<>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<title>Qwik Demo: Todo</title>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Components App</title>
Expand Down
Loading