firefox-devtools / devtools-core

:rocket: Packages for Firefox DevTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escaping inconsistences between strings and text nodes

Loirooriol opened this issue · comments

Run this in the console:

var str = 'a"\nb';
inspect({string: str, textNode: new Text(str)});

Result:

  string: "a\"\nb"
▶ textNode: #text "a"
b"