Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 18:42:27

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,292
Website GitHub

etc_attribute and data-… attributes?

I love this tiny unassuming plugin. It’s just perfect for adding aria and role etc. to a tag’s output. However I’ve managed to get it throw an error when adding a data-xyz attribute to com_connect. I have the following in my etc_attribute prefs:

rel="a|area|link"
style="\w+"
role="\w+"
data-error="\w+"

and this in my tag:

<txp:com_connect_email break="" autocomplete data-error="Please enter a valid email address" />

which gives me:

Textpattern Notice: Unknown tag attribute: data-error Issue detected while parsing form …

But it does add the data-error attribute to … the label.

I guess that plugin is a special case, or am I doing something wrong?


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB