Skip to content

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

@jasononeil

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions