Skip to content

Selector not working as aspected #4948

@p3pp8

Description

@p3pp8

Hello, i need to get from html what is in the head and what is in the body but if i have a script or a style defined inside a body element it is returned has part of the head element and this is causing crashes to my web application.

es:

<script>console.log("script")</script>

!Text!

script elements is returned with selector $('head') but it doesn't belong to it!!!

Any help really appreciated!

Metadata

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