Skip to content

keep-data #160

@pYr0x

Description

@pYr0x

if we really really want keep tags while dont-autorender move all html frags from stache into the current DOM we can prodive a keep-data attribute.
should this line:

if(!ignoreTag && !(node.dataset && node.dataset.keep === "")) {

not be:
if(!ignoreTag || (node.dataset && node.dataset.keep === ""))
instead of
if(!ignoreTag && !(node.dataset && node.dataset.keep === ""))

current szenario:
i have <link rel="preload" href="//fonts.gstatic.com/s/abel/v8/MwQ5bhbm2POE2V9BPQ.woff2" as="font" type="font/woff2" crossorigin="anonymous" data-keep> and want it to be on the header. but done autorender removes LINK tags

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions