Skip to content

[Forwardport] Added alias to block 'product.info.description' #14213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2018
Merged

[Forwardport] Added alias to block 'product.info.description' #14213

merged 1 commit into from
Mar 21, 2018

Conversation

namlier
Copy link
Contributor

@namlier namlier commented Mar 20, 2018

Original Pull Request

#14011

Description

Fixes bug where https://github.com/chedaroo/magento2/blob/05ac0d1915b4170a50dfa4ceb597fac3d74f1b23/app/code/Magento/Catalog/view/frontend/templates/product/view/details.phtml#L25 uses alias html attributes.

Problem is as there is no alias on this block it's falling back to the block name instead which contains .

This is leading to elements with invalid html attribute values, specifically ID's.

Fixed Issues (if relevant)

  1. magento/magento2#<issue_number>: Issue title
  2. ...

Manual testing scenarios

Go to product view page and scroll down to 'product.info.details' block (Bottom tabs)
Inspect in devtools
Element which had id 'tab-label-product.info.description' now has 'tab-label-description'

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

Fixes bug where https://github.com/chedaroo/magento2/blob/05ac0d1915b4170a50dfa4ceb597fac3d74f1b23/app/code/Magento/Catalog/view/frontend/templates/product/view/details.phtml#L25 uses alias html attributes.

Problem is as there is no **alias** on this block it's falling back to the block **name** instead which contains `.`.

This is leading to elements with invalid html attribute values, specifically ID's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants