Skip to content

Can I recover the contaminated DOM? #1779

Closed
@w88975

Description

i create a polymer dom like:

<dom-module id="editor-button" >
    <link rel="import" type="css" href="button.css">

    <template>
        <div class="btn">
            <content></content>
        </div>
    </template>

    <script type="text/javascript" src="button.js"></script>
</dom-module>

when I append to the HTML dom,like this code:

<div>
    <editor-button>button</editor-button>
<div>

i got this div's innerHTML,the result is:

 <editor-button class="style-scope ui-kit-preview-button" tabindex="0">
        <div class="btn style-scope editor-button">
                 button
        </div>
 </editor-button>

i want to get the innerHTML like:

<editor-button>button</editor-button>

not has been contaminated dom.

what should i do?

thanks~~

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions