Bug #34371

Custom HTML5 attributes loose their hyphens when rendered in frontend

Added by Stanislas Rolland about 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-02-28
Priority:Should have Due date:
Assignee:Jigal van Hemert % Done:

100%

Category:Content Rendering
Target version:4.7.0-beta2
TYPO3 Version:4.7 Complexity:
PHP Version:5.3
Votes: 0

Description

HTML5 custom attributes with names starting with "data-" that are entered in the RTE loose their hyphen(s) when rendered in frontend.

The RTE transformation does preserve the hyphens which are correctly stored in the database.


Related issues

duplicated by Core - Bug #25852: rtehtmlarea ignores attributes with "-" (like in the HTML... Resolved 2011-04-08
precedes Core - Bug #34764: RTE: Adapt clickenlarge feature to rendering of HTML5 cus... Resolved 2012-03-12

Associated revisions

Revision 2bb38123
Added by Jigal van Hemert about 1 year ago

[BUGFIX] Keep hyphens in custom HTML5 attributes

In frontend rendering hyphens in custom attribute names must be kept.
Use the same regexp as in t3lib_parsehtml keeps allowed special
characters.

Change-Id: Iacc82d8e0620f87ffa7667297b8a06be732d1297
Releases: 4.8, 4.7, 4.6, 4.5
Fixes: #34371
Reviewed-on: http://review.typo3.org/9521
Reviewed-by: Philipp Gampe
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch

Revision 02447879
Added by Jigal van Hemert about 1 year ago

[BUGFIX] Keep hyphens in custom HTML5 attributes

In frontend rendering hyphens in custom attribute names must be kept.
Use the same regexp as in t3lib_parsehtml keeps allowed special
characters.

Change-Id: I6fe502ba377dc5a4828864561db0334d015b9dfc
Releases: 4.8, 4.7, 4.6, 4.5
Fixes: #34371
Reviewed-on: http://review.typo3.org/9561
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

Revision 3668ca6c
Added by Jigal van Hemert about 1 year ago

[BUGFIX] Keep hyphens in custom HTML5 attributes

In frontend rendering hyphens in custom attribute names must be kept.
Use the same regexp as in t3lib_parsehtml keeps allowed special
characters.

Change-Id: I3716b3aca6378a287bf1054438b18e7ae5889ba7
Releases: 4.8, 4.7, 4.6, 4.5
Fixes: #34371
Reviewed-on: http://review.typo3.org/9562
Reviewed-by: Steffen Ritter
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

Revision 796680a6
Added by Jigal van Hemert 3 months ago

[BUGFIX] Keep hyphens in custom HTML5 attributes

In frontend rendering hyphens in custom attribute names must be kept.
Use the same regexp as in t3lib_parsehtml keeps allowed special
characters.

Change-Id: I6253f1c4c0a14389fc6261c62752e41f9ddb66f9
Releases: 4.8, 4.7, 4.6, 4.5
Fixes: #34371
Reviewed-on: https://review.typo3.org/9563
Reviewed-by: Steffen Ritter
Reviewed-by: Philipp Gampe
Reviewed-by: Mario Rimann
Reviewed-by: Stefan Neufeind
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader

History

Updated by Jigal van Hemert about 1 year ago

  • Status changed from New to Accepted

Updated by Steffen Ritter about 1 year ago

  • Target version changed from 4.7.0 to 4.7.0-beta2

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9521

Updated by Jigal van Hemert about 1 year ago

  • Assignee set to Jigal van Hemert
  • Target version changed from 4.7.0-beta2 to 4.5.13

Updated by Jigal van Hemert about 1 year ago

  • Target version changed from 4.5.13 to 4.7.0-beta2

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/9561

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9562

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9563

Updated by Jigal van Hemert about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF