Files
test-repo/tests/html/attributes/class-bem2.html
T
7cf524fa03 Smarter formatting of HTML class attribute (#7865)
* html: break class attr onto multiple lines, but try keeping consecutive classes with the same prefix on one line

* add changelog

* add more tests

* improve doc structure to fix an issue with the closing quote

* Update changelog_unreleased/html/pr-7865.md

Co-Authored-By: Jed Fox <git@twopointzero.us>

* handle classes with leading _ and -

* update snapshots

* Lint

* Update pr-7865.md

* Update changelog entry

Co-authored-by: Jed Fox <git@twopointzero.us>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-18 15:50:52 +02:00

22 lines
701 B
HTML

<div class="news__header widget__content">
<div class="news__tabs">
<h1 class="news__tab-wrapper news__head-item">
<a
class="home-link home-link_blue_yes news__tab news__tab_selected_yes mix-tabber__tab mix-tabber__tab_selected_yes"
tabindex="0"
aria-selected="true"
aria-controls="news_panel_news"
data-key="news"
id="news_tab_news"
data-stat-link="news.tab.link.news"
data-stat-select="news.tab.select.news"
target="_blank"
role="tab"
href="https://yandex.ru/news?msid=1581089780.29024.161826.172442&mlid=1581088893.glob_225"
rel="noopener"
>...</a
>
</h1>
</div>
</div>