pzprjs icon indicating copy to clipboard operation
pzprjs copied to clipboard

UI Javascript is fragile with respect to HTML formatting

Open robx opened this issue 5 years ago • 1 comments

(Filing this issue mostly for future reference.)

The UI code relies on rather subtle formatting properties of p.html. Particularly, the use of element.firstChild breaks as soon as whitespace is introduced, e.g. by breaking a line.

Compare https://github.com/robx/pzprjs/pull/122, where autoformatting p.html breaks things.

robx avatar Jan 29 '20 11:01 robx

Maybe related, but the app doesn't load when I'm using the https://darkreader.org/ dynamic filter.

JupiLogy avatar Nov 06 '20 00:11 JupiLogy