Package not found. Please check the package name and try again.

@adobe/helix-html-pipeline 6.27.26 → 6.27.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.27.27](https://github.com/adobe/helix-html-pipeline/compare/v6.27.26...v6.27.27) (2026-03-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * hreflang attribute values not spec-compliant ([#1049](https://github.com/adobe/helix-html-pipeline/issues/1049)) ([5299eae](https://github.com/adobe/helix-html-pipeline/commit/5299eaef0a5ee4d6653765651d8e9c33db37a77d))
7
+
1
8
  ## [6.27.26](https://github.com/adobe/helix-html-pipeline/compare/v6.27.25...v6.27.26) (2026-03-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.27.26",
3
+ "version": "6.27.27",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -17,12 +17,6 @@ import rehypeParse from 'rehype-parse';
17
17
  import { cleanupHeaderValue } from '@adobe/helix-shared-utils';
18
18
  import { contentSecurityPolicyOnAST } from './csp.js';
19
19
 
20
- function formatLang(lang) {
21
- return lang
22
- .replaceAll('_', '-')
23
- .toLowerCase();
24
- }
25
-
26
20
  function appendElement($parent, $el) {
27
21
  if ($el) {
28
22
  $parent.children.push($el);
@@ -83,7 +77,7 @@ export default async function render(state, req, res) {
83
77
  }
84
78
  if (name.toLowerCase() === 'html-lang') {
85
79
  if (value) {
86
- htmlLang = formatLang(value);
80
+ htmlLang = value;
87
81
  }
88
82
  // eslint-disable-next-line no-continue
89
83
  continue;
@@ -93,7 +87,7 @@ export default async function render(state, req, res) {
93
87
  if (lang) {
94
88
  appendElement(
95
89
  $head,
96
- createElement('link', 'rel', 'alternate', 'hreflang', formatLang(lang), 'href', value),
90
+ createElement('link', 'rel', 'alternate', 'hreflang', lang, 'href', value),
97
91
  );
98
92
  }
99
93
  // eslint-disable-next-line no-continue