Skip to content

content-mode: append for attributes? #225

@cj-clx

Description

@cj-clx

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions