Skip to content

Multiple class selectors on same element in a PHP file #141

@polygbrl

Description

@polygbrl

When using gulp-rcs ^3.0.0 and rcs-core ^3.6.5 with a PHP document including elements with multiple class selectors, these element's classlists are not transformed.

For example:

<?php #This is a php file ?>
<div class="hello fade-in"></div>
<div class="hello"></div>
<div class="fade-in"></div>

Transforms to:

<?php #This is a php file ?>
<div class="hello fade-in"></div>
<div class="t"></div>
<div class="n"></div>

If I change the PHP file to an HTML file and keep the same gulp-rcs config, everything goes as espected.

Same example transforms to:

<!--?php #This is a php file ?-->
<div class="t n"></div>
<div class="t"></div>
<div class="n"></div>

There doesn't seem to be anything related in the caveats list. Any hints on what is going on here?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions