Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update formdetector for name fields (#541)
Leendert de Borst3fe5fbd981ce
diff --git a/browser-extensions/chrome/src/contentScript/Form.ts b/browser-extensions/chrome/src/contentScript/Form.tsindex f20303764..b08e3d095 100644--- a/browser-extensions/chrome/src/contentScript/Form.ts+++ b/browser-extensions/chrome/src/contentScript/Form.ts@@ -99,7 +99,7 @@ export function fillCredential(credential: Credential, input: HTMLInputElement)if (form.birthdateField.month instanceof HTMLSelectElement) {const monthValue = (birthDate.getMonth() + 1).toString().padStart(2, '0');const monthNames = ['January', 'February', 'March', 'April', 'May', 'June',- 'July', 'August', 'September', 'October', 'November', 'December'];+ 'July', 'August', 'September', 'October', 'November', 'December'];const monthOption = Array.from(form.birthdateField.month.options).find(opt =>opt.value === monthValue ||opt.value === (birthDate.getMonth() + 1).toString() ||diff --git a/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts b/browser-extensions/chrome/src/shared/formDetector/FormDetector.tsindex 4d06ae65a..847bee987 100644--- a/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts+++ b/browser-extensions/chrome/src/shared/formDetector/FormDetector.ts@@ -36,7 +36,7 @@ export class FormDetector {const emailFields = this.findEmailField(form);const usernameField = this.findUsernameField(form);const passwordFields = this.findPasswordField(form);- const firstNameField = this.findInputField(form, ['firstname', 'first-name', 'fname', 'voornaam'], ['text']);+ const firstNameField = this.findInputField(form, ['firstname', 'first-name', 'fname', 'voornaam', 'name'], ['text']);const lastNameField = this.findInputField(form, ['lastname', 'last-name', 'lname', 'achternaam'], ['text']);const birthdateField = this.findBirthdateFields(form);const genderField = this.findGenderField(form);@@ -115,6 +115,10 @@ export class FormDetector {? form.querySelectorAll<HTMLInputElement>('input, select'): this.document.querySelectorAll<HTMLInputElement>('input, select');+ // Track best match and its pattern index+ let bestMatch: HTMLInputElement | null = null;+ let bestMatchIndex = patterns.length;+for (const input of Array.from(candidates)) {// Handle both input and select elementsconst type = input.tagName.toLowerCase() === 'select' ? 'select' : input.type.toLowerCase();@@ -124,20 +128,18 @@ export class FormDetector {const attributes = [input.id,input.name,- input.className,input.placeholder].map(attr => attr?.toLowerCase() || '');- // Check for associated labels if input has an ID- if (input.id) {- // Find label with matching 'for' attribute- const label = this.document.querySelector(`label[for="${input.id}"]`);+ // Check for associated labels if input has an ID or name+ if (input.id || input.name) {+ const label = this.document.querySelector(`label[for="${input.id || input.name}"]`);if (label) {attributes.push(label.textContent?.toLowerCase() || '');}}- // Check for parent label (in case input has a label sibling somewhere up to 3 levels up)+ // Check for parent labellet currentElement = input;for (let i = 0; i < 3; i++) {const parentLabel = currentElement.closest('label');@@ -146,7 +148,6 @@ export class FormDetector {break;}- // Move up to the parent elementif (currentElement.parentElement) {currentElement = currentElement.parentElement as HTMLInputElement;} else {@@ -154,12 +155,18 @@ export class FormDetector {}}- if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {- return input;+ // Find the earliest matching pattern+ for (let i = 0; i < patterns.length; i++) {+ if (i >= bestMatchIndex) break; // Skip if we already have a better match+ if (attributes.some(attr => attr.includes(patterns[i]))) {+ bestMatch = input;+ bestMatchIndex = i;+ break; // Found the best possible match for this input+ }}}- return null;+ return bestMatch;}/**@@ -181,7 +188,7 @@ export class FormDetector {input.placeholder].map(attr => attr?.toLowerCase() || '');- const patterns = ['user', 'username', 'name', 'login', 'identifier'];+ const patterns = ['user', 'username', 'login', 'identifier'];if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {return input;}@@ -201,17 +208,17 @@ export class FormDetector {// Find primary email fieldconst primaryEmail = this.findInputField(form,- ['email', 'e-mail', 'mail', '@', 'emailaddress'],+ ['e-mailadres', 'e-mail', 'email', 'mail', '@', 'emailaddress'],['text', 'email']);// Find confirmation email field if primary existsconst confirmEmail = primaryEmail? this.findInputField(- form,- ['confirm', 'verification', 'repeat', 'retype', 'verify'],- ['text', 'email']- )+ form,+ ['confirm', 'verification', 'repeat', 'retype', 'verify'],+ ['text', 'email']+ ): null;return {diff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.en.test.ts b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.en.test.tsindex abb2cacd5..ee829ec6f 100644--- a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.en.test.ts+++ b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.en.test.ts@@ -13,7 +13,7 @@ describe('FormDetector', () => {const htmlFile = 'en-registration-form2.html';testField(FormField.Email, 'signup-email-input', htmlFile);- testField(FormField.Username, 'signup-name-input', htmlFile);+ testField(FormField.FirstName, 'signup-name-input', htmlFile);});describe('English registration form 3 detection', () => {diff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.tsindex 910c01e58..0cee503a8 100644--- a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts+++ b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.nl.test.ts@@ -1,79 +1,89 @@-import { describe, it, expect } from 'vitest';+import { describe } from 'vitest';import { FormField, testField, testBirthdateFormat } from './TestUtils';describe('FormDetector', () => {- describe('Dutch registration form detection', () => {- const htmlFile = 'nl-registration-form1.html';-- testField(FormField.LastName, 'cpContent_txtAchternaam', htmlFile);- testField(FormField.Email, 'cpContent_txtEmail', htmlFile);- testField(FormField.Password, 'cpContent_txtWachtwoord', htmlFile);- testField(FormField.PasswordConfirm, 'cpContent_txtWachtwoord2', htmlFile);- });-- describe('Dutch registration form 2 detection', () => {- const htmlFile = 'nl-registration-form2.html';-- testField(FormField.Username, 'register-username', htmlFile);- testField(FormField.Email, 'register-email', htmlFile);- testField(FormField.Password, 'register-password', htmlFile);-- testField(FormField.BirthDay, 'register-day', htmlFile);- testField(FormField.BirthMonth, 'register-month', htmlFile);- testField(FormField.BirthYear, 'register-year', htmlFile);-- testField(FormField.GenderMale, 'man', htmlFile);- testField(FormField.GenderFemale, 'vrouw', htmlFile);- testField(FormField.GenderOther, 'iets', htmlFile);- });-- describe('Dutch registration form 3 detection', () => {- const htmlFile = 'nl-registration-form3.html';-- testField(FormField.FirstName, 'firstName', htmlFile);- testField(FormField.LastName, 'lastName', htmlFile);- testField(FormField.Password, 'password', htmlFile);-- testField(FormField.BirthDate, 'date', htmlFile);- testBirthdateFormat('dd-mm-yyyy', htmlFile);- testField(FormField.GenderMale, 'gender1', htmlFile);- testField(FormField.GenderFemale, 'gender2', htmlFile);- testField(FormField.GenderOther, 'gender3', htmlFile);- });-- describe('Dutch registration form 4 detection', () => {- const htmlFile = 'nl-registration-form4.html';-- testField(FormField.Email, 'EmailAddress', htmlFile);- });-- describe('Dutch registration form 5 detection', () => {- const htmlFile = 'nl-registration-form5.html';-- testField(FormField.Email, 'input_25_5', htmlFile);- testField(FormField.Gender, 'input_25_13', htmlFile);- testField(FormField.FirstName, 'input_25_14', htmlFile);- testField(FormField.LastName, 'input_25_15', htmlFile);- testField(FormField.BirthDate, 'input_25_10', htmlFile);- testBirthdateFormat('dd/mm/yyyy', htmlFile);- });-- describe('Dutch registration form 6 detection', () => {- const htmlFile = 'nl-registration-form6.html';-- testField(FormField.Email, 'field18478', htmlFile);- testField(FormField.FirstName, 'field18479', htmlFile);- testField(FormField.LastName, 'field18486', htmlFile);- });-- describe('Dutch registration form 7 detection', () => {- const htmlFile = 'nl-registration-form7.html';-- testField(FormField.Email, 'Form_EmailAddress', htmlFile);- testField(FormField.Password, 'Form_Password', htmlFile);- testField(FormField.PasswordConfirm, 'Form_RepeatPassword', htmlFile);- testField(FormField.BirthDay, 'Form.Birthdate_d', htmlFile);- testField(FormField.BirthMonth, 'Form.Birthdate_m', htmlFile);- testField(FormField.BirthYear, 'Form.Birthdate_y', htmlFile);- });+ describe('Dutch registration form detection', () => {+ const htmlFile = 'nl-registration-form1.html';++ testField(FormField.LastName, 'cpContent_txtAchternaam', htmlFile);+ testField(FormField.Email, 'cpContent_txtEmail', htmlFile);+ testField(FormField.Password, 'cpContent_txtWachtwoord', htmlFile);+ testField(FormField.PasswordConfirm, 'cpContent_txtWachtwoord2', htmlFile);+ });++ describe('Dutch registration form 2 detection', () => {+ const htmlFile = 'nl-registration-form2.html';++ testField(FormField.Username, 'register-username', htmlFile);+ testField(FormField.Email, 'register-email', htmlFile);+ testField(FormField.Password, 'register-password', htmlFile);++ testField(FormField.BirthDay, 'register-day', htmlFile);+ testField(FormField.BirthMonth, 'register-month', htmlFile);+ testField(FormField.BirthYear, 'register-year', htmlFile);++ testField(FormField.GenderMale, 'man', htmlFile);+ testField(FormField.GenderFemale, 'vrouw', htmlFile);+ testField(FormField.GenderOther, 'iets', htmlFile);+ });++ describe('Dutch registration form 3 detection', () => {+ const htmlFile = 'nl-registration-form3.html';++ testField(FormField.FirstName, 'firstName', htmlFile);+ testField(FormField.LastName, 'lastName', htmlFile);+ testField(FormField.Password, 'password', htmlFile);++ testField(FormField.BirthDate, 'date', htmlFile);+ testBirthdateFormat('dd-mm-yyyy', htmlFile);+ testField(FormField.GenderMale, 'gender1', htmlFile);+ testField(FormField.GenderFemale, 'gender2', htmlFile);+ testField(FormField.GenderOther, 'gender3', htmlFile);+ });++ describe('Dutch registration form 4 detection', () => {+ const htmlFile = 'nl-registration-form4.html';++ testField(FormField.Email, 'EmailAddress', htmlFile);+ });++ describe('Dutch registration form 5 detection', () => {+ const htmlFile = 'nl-registration-form5.html';++ testField(FormField.Email, 'input_25_5', htmlFile);+ testField(FormField.Gender, 'input_25_13', htmlFile);+ testField(FormField.FirstName, 'input_25_14', htmlFile);+ testField(FormField.LastName, 'input_25_15', htmlFile);+ testField(FormField.BirthDate, 'input_25_10', htmlFile);+ testBirthdateFormat('dd/mm/yyyy', htmlFile);+ });++ describe('Dutch registration form 6 detection', () => {+ const htmlFile = 'nl-registration-form6.html';++ testField(FormField.Email, 'field18478', htmlFile);+ testField(FormField.FirstName, 'field18479', htmlFile);+ testField(FormField.LastName, 'field18486', htmlFile);+ });++ describe('Dutch registration form 7 detection', () => {+ const htmlFile = 'nl-registration-form7.html';++ testField(FormField.Email, 'Form_EmailAddress', htmlFile);+ testField(FormField.FirstName, 'Form_Firstname', htmlFile);+ testField(FormField.LastName, 'Form_Lastname', htmlFile);+ testField(FormField.Password, 'Form_Password', htmlFile);+ testField(FormField.PasswordConfirm, 'Form_RepeatPassword', htmlFile);+ testField(FormField.BirthDay, 'Form.Birthdate_d', htmlFile);+ testField(FormField.BirthMonth, 'Form.Birthdate_m', htmlFile);+ testField(FormField.BirthYear, 'Form.Birthdate_y', htmlFile);+ });++ describe('Dutch registration form 8 detection', () => {+ const htmlFile = 'nl-registration-form8.html';++ testField(FormField.FirstName, 'aliasvault-input-name', htmlFile);+ testField(FormField.Email, 'aliasvault-input-email', htmlFile);+ testField(FormField.LastName, 'aliasvault-input-lastname', htmlFile);+ });});diff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.test.ts b/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.test.tsdeleted file mode 100644index cf780bea8..000000000--- a/browser-extensions/chrome/src/shared/formDetector/__tests__/FormDetector.test.ts+++ /dev/null@@ -1,202 +0,0 @@-import { FormDetector } from '../FormDetector';-import { readFileSync } from 'fs';-import { join } from 'path';-import { describe, it, expect } from 'vitest';-import { JSDOM } from 'jsdom';-import { LoginForm } from '../types/LoginForm';--/**- * Load a test HTML file.- */-const loadTestHtml = (filename: string): string => {- return readFileSync(join(__dirname, 'test-forms', filename), 'utf-8');-};--/**- * Setup a form detection test.- */-const setupFormTest = (htmlFile: string, focusedElementId?: string) : { document: Document, result: LoginForm } => {- const html = loadTestHtml(htmlFile);- const dom = new JSDOM(html, {- url: 'http://localhost',- runScripts: 'dangerously',- resources: 'usable'- });- const document = dom.window.document;-- // Set focus on specified element if provided- let focusedElement: HTMLElement | null = null;- if (focusedElementId) {- focusedElement = document.getElementById(focusedElementId);- if (!focusedElement) {- throw new Error(`Focus element with id "${focusedElementId}" not found in test HTML`);- }- focusedElement.focus();-- // Create a new form detector with the focused element.- const formDetector = new FormDetector(document, focusedElement);- const result = formDetector.detectForms()[0];- return { document, result };- }-- // No focused element, so just detect the first form.- const formDetector = new FormDetector(document);- const result = formDetector.detectForms()[0];- return { document, result };-};--enum FormField {- Username = 'username',- FirstName = 'firstName',- LastName = 'lastName',- Email = 'email',- EmailConfirm = 'emailConfirm',- Password = 'password',- PasswordConfirm = 'passwordConfirm',- BirthDate = 'birthdate',- BirthDateFormat = 'birthdateFormat',- BirthDay = 'birthdateDay',- BirthMonth = 'birthdateMonth',- BirthYear = 'birthdateYear',- Gender = 'gender',- GenderMale = 'genderMale',- GenderFemale = 'genderFemale',- GenderOther = 'genderOther'-}--/**- * Helper function to test field detection- */-const testField = (fieldName: FormField, elementId: string, htmlFile: string) : void => {- it(`should detect ${fieldName} field`, () => {- const { document, result } = setupFormTest(htmlFile, elementId);-- // First verify the test element exists- const expectedElement = document.getElementById(elementId);- if (!expectedElement) {- throw new Error(`Test setup failed: Element with id "${elementId}" not found in test HTML. Check if the element is present in the test HTML file: ${htmlFile}`);- }-- // Handle birthdate fields differently- if (fieldName === FormField.BirthDate) {- expect(result.birthdateField.single).toBe(expectedElement);- } else if (fieldName === FormField.BirthDay) {- expect(result.birthdateField.day).toBe(expectedElement);- } else if (fieldName === FormField.BirthMonth) {- expect(result.birthdateField.month).toBe(expectedElement);- } else if (fieldName === FormField.BirthYear) {- expect(result.birthdateField.year).toBe(expectedElement);- }- // Handle gender field differently- else if (fieldName === FormField.Gender) {- expect(result.genderField.field).toBe(expectedElement);- } else if (fieldName === FormField.GenderMale) {- expect(result.genderField.radioButtons?.male).toBe(expectedElement);- } else if (fieldName === FormField.GenderFemale) {- expect(result.genderField.radioButtons?.female).toBe(expectedElement);- } else if (fieldName === FormField.GenderOther) {- expect(result.genderField.radioButtons?.other).toBe(expectedElement);- }- // Handle default fields- else {- const fieldKey = `${fieldName}Field` as keyof typeof result;- expect(result[fieldKey]).toBeDefined();- expect(result[fieldKey]).toBe(expectedElement);- }- });-};--/**- * Test the birthdate format.- */-const testBirthdateFormat = (expectedFormat: string, htmlFile: string) : void => {- it('should detect correct birthdate format', () => {- const { result } = setupFormTest(htmlFile);- expect(result.birthdateField.format).toBe(expectedFormat);- });-};--describe('FormDetector', () => {- describe('Dutch registration form detection', () => {- const htmlFile = 'nl-registration-form1.html';-- testField(FormField.LastName, 'cpContent_txtAchternaam', htmlFile);- testField(FormField.Email, 'cpContent_txtEmail', htmlFile);- testField(FormField.Password, 'cpContent_txtWachtwoord', htmlFile);- testField(FormField.PasswordConfirm, 'cpContent_txtWachtwoord2', htmlFile);- });-- describe('Dutch registration form 2 detection', () => {- const htmlFile = 'nl-registration-form2.html';-- testField(FormField.Username, 'register-username', htmlFile);- testField(FormField.Email, 'register-email', htmlFile);- testField(FormField.Password, 'register-password', htmlFile);-- testField(FormField.BirthDay, 'register-day', htmlFile);- testField(FormField.BirthMonth, 'register-month', htmlFile);- testField(FormField.BirthYear, 'register-year', htmlFile);-- testField(FormField.GenderMale, 'man', htmlFile);- testField(FormField.GenderFemale, 'vrouw', htmlFile);- testField(FormField.GenderOther, 'iets', htmlFile);- });-- describe('Dutch registration form 3 detection', () => {- const htmlFile = 'nl-registration-form3.html';-- testField(FormField.FirstName, 'firstName', htmlFile);- testField(FormField.LastName, 'lastName', htmlFile);- testField(FormField.Password, 'password', htmlFile);-- testField(FormField.BirthDate, 'date', htmlFile);- testBirthdateFormat('dd-mm-yyyy', htmlFile);- testField(FormField.GenderMale, 'gender1', htmlFile);- testField(FormField.GenderFemale, 'gender2', htmlFile);- testField(FormField.GenderOther, 'gender3', htmlFile);- });-- describe('Dutch registration form 4 detection', () => {- const htmlFile = 'nl-registration-form4.html';-- testField(FormField.Email, 'EmailAddress', htmlFile);- });-- describe('Dutch registration form 5 detection', () => {- const htmlFile = 'nl-registration-form5.html';-- testField(FormField.Email, 'input_25_5', htmlFile);- testField(FormField.Gender, 'input_25_13', htmlFile);- testField(FormField.FirstName, 'input_25_14', htmlFile);- testField(FormField.LastName, 'input_25_15', htmlFile);- testField(FormField.BirthDate, 'input_25_10', htmlFile);- testBirthdateFormat('dd/mm/yyyy', htmlFile);- });-- describe('English registration form 1 detection', () => {- const htmlFile = 'en-registration-form1.html';-- testField(FormField.Email, 'login', htmlFile);- testField(FormField.Password, 'password', htmlFile);- });-- describe('English registration form 2 detection', () => {- const htmlFile = 'en-registration-form2.html';-- testField(FormField.Email, 'signup-email-input', htmlFile);- testField(FormField.Username, 'signup-name-input', htmlFile);- });-- describe('English registration form 3 detection', () => {- const htmlFile = 'en-registration-form3.html';-- testField(FormField.Email, 'email', htmlFile);- testField(FormField.EmailConfirm, 'reenter_email', htmlFile);- });-- describe('English email form 1 detection', () => {- const htmlFile = 'en-email-form1.html';-- testField(FormField.Email, 'P0-0', htmlFile);- });-});\ No newline at end of filediff --git a/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form8.html b/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form8.htmlnew file mode 100644index 000000000..c73565268--- /dev/null+++ b/browser-extensions/chrome/src/shared/formDetector/__tests__/test-forms/nl-registration-form8.html@@ -0,0 +1,4 @@+<!--+Test that name vs email field detection works correctly in that it detects the most specific field correctly.+-->+<div class="c-enormail-webform__content"><div class="c-enormail-webform__optin--default c-enormail-webform__panel__row"><div class="col-sm-12"><div class="c-enormail-webform__text"><div class="c-enormail-webform__heading"><p>Ja, ik wil de XO-nieuwsbrief ontvangen</p></div></div></div></div><div class="c-enormail-webform__optin--success c-enormail-webform__panel__row" style="display:none;"><div class="col-sm-12"><div class="c-enormail-webform__text"><div class="c-enormail-webform__thankyouheading"><p>Inschrijving bevestigd!</p></div><div class="c-enormail-webform__thankyouparagraph"><p>Je inschrijving op onze mailinglijst is bevestigd.</p><p>Hartelijk dank voor je inschrijving!</p></div></div></div></div><div class="c-enormail-webform__form"><div class="c-enormail-webform__form__inner"><form name="subscribe" action="https://app.enormail.eu/subscribe/6cab6d38b17c8393d74837d3cb20ce1d" method="post"><div class="c-enormail-webform__fields"><div class="c-enormail-webform__fields__grid c-enormail-webform__fields__grid--fields"><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="name" class="c-enormail-webform__label">Naam *</label><input type="text" name="name" value="" class="form-control c-enormail-webform__field" id="aliasvault-input-name" autocomplete="false"></div></div><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="lastname" class="c-enormail-webform__label">Achternaam *</label><input type="text" name="lastname" id="aliasvault-input-lastname" value="" class="form-control c-enormail-webform__field"></div></div><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group has-feedback"><label for="email" class="c-enormail-webform__label">E-mailadres *</label><input type="email" name="email" value="" class="form-control c-enormail-webform__field" id="aliasvault-input-email" autocomplete="false"></div></div></div><div class="c-enormail-webform__gdpr"><div class="c-enormail-webform__gdpr__item c-enormail-webform__gdpr__item--privacy c-enormail-webform__privacyborder"><div class="c-enormail-webform__privacy"><p>Na registratie stuurt XO Hotels u regelmatig nieuwsbrieven. Het is mogelijk om u uit te schrijven via de link in de nieuwsbrief. Wij gebruiken uw e-mailadres niet voor andere doeleinden. Meer informatie vindt u in onze <a href="https://xohotels.com/privacy-statement-xo-hotels/">privacyverklaring</a>.</p></div></div></div><div class="c-enormail-webform__fields__grid c-enormail-webform__fields__grid--button"><div class="c-enormail-webform__fields__grid__cell c-enormail-webform__fields__grid__cell--wide"><div class="form-group text-center"><!-- Prevents automated signups, please don't remove --><div style="position:absolute;left:-5000px;" aria-hidden="true"><input type="text" name="b_6cab6d38b17c8393d74837d3cb20ce1d" tabindex="-1" value=""></div><button type="submit" class="btn c-enormail-webform__button c-enormail-webform__button--left c-enormail-webform__button--shadow"><span class="c-enormail-webform__button__inner"><span class="c-enormail-webform__button__loader" style="display:none;height:16px;color:#ffffff;"><svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 40" enable-background="new 0 0 0 0" xml:space="preserve"><circle fill="#ffffff" stroke="none" cx="30" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate></circle><circle fill="#ffffff" stroke="none" cx="50" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate></circle><circle fill="#ffffff" stroke="none" cx="70" cy="20" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate></circle></svg></span><span class="c-enormail-webform__button__text" style="color:#ffffff;">Schrijf mij in voor de XO Nieuwsbrief</span></span></button></div></div></div></div></form><!-- Enormail Branding --><div class="c-enormail-webform__brand light"><a href="https://enormail.eu?utm_source=&utm_medium=referral&utm_campaign=subscribe-form" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="465.4" height="76" viewBox="0 0 465.4 76" fill="#fff"><path d="M42.5.1h12.2c4.4 0 8.8-.2 13.2.1C73.8.4 79.7 2 85 4.7L34.8 37.8c-3.1-5.1-6.1-10.1-9.2-15.2-2.1-3.4-4.1-6.8-6.2-10.2l-1.8-3c-.1-.2-.4-.5-.4-.7 0-.5 1.5-1.2 1.9-1.5C26 2.6 34.2.1 42.5.1M23.3 28.9L13 12C5.5 19.2.6 29.2 0 40.2l23.3-11.3z"></path><path d="M64.3 61.7H39.5V76H0V46l26.1-12.4 7.1 11.7v-.1.1c2.7-1.8 5.3-3.5 8-5.3.8-.5 1.5-1 2.3-1.5.3-.2.9-.8 1.3-.9.4-.1.5.4.8.7 4.7 5.8 9.3 11.7 14 17.5 1.6 2 3.2 3.9 4.7 5.9zm61.8-13.6c-1.9 3.1-4.9 5-8.4 5.7-2.2.4-4.7.7-6.7-.4-.9-.5-1.9-1.3-2.3-2.2-.5-1.1-.5-2.5-.5-3.7v-4.9c0-9.9-3.6-19.7-10-27.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