Skip to content
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

content-mode: append for attributes? #225

Open
cj-clx opened this issue Feb 21, 2020 · 0 comments
Open

content-mode: append for attributes? #225

cj-clx opened this issue Feb 21, 2020 · 0 comments

Comments

@cj-clx
Copy link

cj-clx commented Feb 21, 2020

Should this work? Or does content-mode: append; only work for element content, not attributes?

require "vendor/autoload.php";

$xml = <<<XML
<input value=""/>
XML;

$tss = <<<TSS
input:attr(value) {
    content: "first_part";
}
input:attr(value) {
    content: "_suffix";
    content-mode: append;
}
TSS;

$data = [];

$template = new Transphporm\Builder($xml, $tss);
echo $template->output($data)->body . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant