[Add third party library] HTML attributes handling

Created on 20 September 2018, over 6 years ago
Updated 31 May 2025, 3 days ago

Hi all,

I've been working on a library these last days: HTMLTag.

This library handles the creation of HTML tag and its attributes.

Drupal has a class to handle its HTML tags Attributes.
That class could be replaced by the Attributes class from HTMLTag.

HTMLTag is friendly to use and has full tests coverage and tests related to the attributes handling could be removed from Drupal.

I made a proof of concept locally and uploading the patch here, just as a proof of concept, tests on that patch are not yet removed.

It's the first time I propose an external library for Drupal core, I don't know if it's the right way, let me know if this is worth continuing.

Thanks.

Feature request
Status

Active

Version

11.0 🔥

Component

theme system

Created by

🇧🇪Belgium pol Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    The Ideas project is being deprecated. This issue is moved to the Drupal project. Check that the selected component is correct. Also, add the relevant tags, especially any 'needs manager review' tags.

    Changing to the standard issue template would also help other contributors.

Production build 0.71.5 2024