Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

adding contenteditable to the <html> tag allows for editing in the browser too



Rather surprisingly this allows you to modify the style as well. Not sure anyone's ever used that before.


Only those inside <body>, still very cool. I had no idea about contenteditable


That's really neat - as you can edit the page you're on, which changes the visibility or styling of the source code of the page. Until you can no longer see the source code depending on which styles you change...


that's a truly wicked idea... okay i've snuck a contenteditable in to the file. Editing styles live inline is wild.


Rats, i had to remove the contenteditable=true... it stopped links from working... still the idea of a visible `contenteditable` style block is a great one. Have to use that some time!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: