Skip to content

error parse String object instance to html #3324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DragorWW opened this issue Sep 21, 2016 · 1 comment
Closed

error parse String object instance to html #3324

DragorWW opened this issue Sep 21, 2016 · 1 comment
Labels

Comments

@DragorWW
Copy link

Description

Functionl htlm to dom not work with String object, only work with string literal.

version: 2.x, 3.x;
test Browser: last Google Chrome;

expample:

// string literal:
console.log($.('<div></div>')); // [<div></div>]
// string object:
console.log($.(new String('<div></div>'))); // ["<", "d", "i", "v", ">", "<", "/", "d", "i", "v", ">"]

Link to test case

https://jsfiddle.net/7v0dt0h6/2/

@gibson042
Copy link
Member

@gibson042 gibson042 added the Core label Sep 26, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants