Skip to content

parse() can't accept a "<html>" element #1

Description

@jasononeil
var myDoc = "<html>
    <head><title>My Title</title></head>
    <body>My Body</body>
</html>".parse();

trace (myDoc.length);

This shows 5. TextNode, head, TextNode, body, TextNode.

I would expect it to show 1: html

If we change <html></html> to <myxml></myxml>, it works as expected.

Tested in Firefox

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions