-
Notifications
You must be signed in to change notification settings - Fork 1.6k
✅ 🐞 Background Video ignores its HTML Tag setting and always renders a div #37393
Copy link
Copy link
Closed
Copy link
Labels
bugIndicates a bug with one or multiple components.Indicates a bug with one or multiple components.component/codeIndicates when a topic is related to a component’s code.Indicates when a topic is related to a component’s code.component/v4/atomic-elementsReferences any Atomic Element included with the Atomic Editor V4.References any Atomic Element included with the Atomic Editor V4.mod*[Temp.] For internal use only.[Temp.] For internal use only.mod/b*[Temp.] For internal use only.[Temp.] For internal use only.mod/e*[Temp.] For internal use only.[Temp.] For internal use only.product/editor-v4References any component and featured related to the Atomic Editor v4.References any component and featured related to the Atomic Editor v4.status/evaluatingIndicates when an Issue or Discussion is under evaluation or analysis.Indicates when an Issue or Discussion is under evaluation or analysis.status/has-prIndicates that an Issue, or Discussion has a companion Pull Request awaiting to be merged.Indicates that an Issue, or Discussion has a companion Pull Request awaiting to be merged.widget/settingsReferences any widget’s settings.References any widget’s settings.
Description
Activity
Metadata
Metadata
Assignees
Labels
bugIndicates a bug with one or multiple components.Indicates a bug with one or multiple components.component/codeIndicates when a topic is related to a component’s code.Indicates when a topic is related to a component’s code.component/v4/atomic-elementsReferences any Atomic Element included with the Atomic Editor V4.References any Atomic Element included with the Atomic Editor V4.mod*[Temp.] For internal use only.[Temp.] For internal use only.mod/b*[Temp.] For internal use only.[Temp.] For internal use only.mod/e*[Temp.] For internal use only.[Temp.] For internal use only.product/editor-v4References any component and featured related to the Atomic Editor v4.References any component and featured related to the Atomic Editor v4.status/evaluatingIndicates when an Issue or Discussion is under evaluation or analysis.Indicates when an Issue or Discussion is under evaluation or analysis.status/has-prIndicates that an Issue, or Discussion has a companion Pull Request awaiting to be merged.Indicates that an Issue, or Discussion has a companion Pull Request awaiting to be merged.widget/settingsReferences any widget’s settings.References any widget’s settings.
Description
The Background Video element added in 4.3.0 has an HTML Tag setting (Div, Header, Section, Article, Aside, Footer) under Settings, but changing it has no effect. The element always renders as a div. The template hardcodes the tag: modules/atomic-widgets/elements/atomic-background-video/atomic-background-video.html.twig prints <div on line 6 and m.default_tag_class('div') on line 5, while the element's schema offers the six tags (atomic-background-video.php, lines 97 and 98). Div Block renders {{ tag | e('html_tag') }} instead.
Steps to reproduce
Expected behavior
Expected behavior:
The element renders as
Elementor System Info
Click to reveal
Agreement