Log in to your account or create a new one | Order | Nespresso

Skip to content
Header
You are on the main content
(function () { 'use strict'; if (window.__nlcAriaFix) return; window.__nlcAriaFix = true; var HEADING_LEVEL = '2'; var SELECTOR = '#nlc-title, .nlc-title'; function normalize(text) { return (text || '').replace(/\s+/g, ' ').trim().toLowerCase(); } function fixTitle(el) { if (el.getAttribute('role') !== 'heading') return; if (!el.hasAttribute('aria-level')) { el.setAttribute('aria-level', HEADING_LEVEL); } var label = el.getAttribute('aria-label'); if (label !== null && normalize(label) === normalize(el.textContent)) { el.removeAttribute('aria-label'); } } function scan(root) { if (!root || root.nodeType !== 1) return; if (root.matches && root.matches(SELECTOR)) fixTitle(root); var found = root.querySelectorAll ? root.querySelectorAll(SELECTOR) : []; for (var i = 0; i < found.length; i++) fixTitle(found[i]); } function start() { scan(document.body); new MutationObserver(function (mutations) { for (var i = 0; i < mutations.length; i++) { var m = mutations[i]; if (m.type === 'childList') { for (var j = 0; j < m.addedNodes.length; j++) scan(m.addedNodes[j]); } else if (m.type === 'attributes' && m.target.matches(SELECTOR)) { fixTitle(m.target); } } }).observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['role', 'aria-level', 'aria-label', 'id', 'class'] }); } if (document.body) { start(); } else { document.addEventListener('DOMContentLoaded', start); } })();