Skip to content

Component from the DOM #102

Open
Open
@lucafabbian

Description

@lucafabbian

Is there a way to mount the current DOM as a component? Would it ever be?

I would like to create a component from the webpage itself instead of declaring it as a string.
This may be really beneficial for SEOs, and also provide a nice way to get syntax highlighting. It would be game changing from the developer experience.

A quick way to achieve this would be to get the component's innerHTML, parse it, find special tags and then eval the result, I was wondering if you'll be interested in something like this. If you wish, I may work on this and propose a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions